arya-jarvis v1.15.0
English | ไธญๆ
Goal and Philosophy
The ideal goal is to help us deal with things that can be more precise in the simplest way. Arya Jarvis
is an attempt to do this, it designed to save developers more time and energy.
Prerequisites
Node.js (>= 8.*), Npm version 5+ (Yarn preferred).
Install
pnpm add -g arya-jarvis
# OR
yarn global add arya-jarvis
# OR
npm i arya-jarvis -g
Usage
๐ Copy the current path to the clipboard.
In macOS, if you need to quickly obtain the path of the current directory in Terminal, you can use several methods: You can directly type pwd (Print Working Directory) in Terminal and press enter. This will display the full path of the current working directory. You can manually copy this path, or proceed to the next step to copy it to the clipboard. Alternatively, you can create an alias or use the following command to copy the current directory path to the clipboard:
pwd | pbcopy
However, these operations aren't as convenient and quick as desired. Therefore, in arya
, the following feature has been implemented to print the current path and copy it to the clipboard ๐:
arya copy:pwd
# ๐ Or Use Alias
arya pwd
๐ Generate random secure password
arya password
# ๐ Or Use Alias
arya pw
Options:
- Length (
-l
,--length
): Specify password length (default: 8) - Special (
-s
,--special
): Whether special characters are needed(default true).
Examples:
# Generate 16 character password with all character types
arya password -l 16 -s
# Generate password with only numbers(16) and letters
arya pw -l 16
# Quick generate with default settings
arya pw
The following two functions can support multiple format files, such as: .js
, .vue
, .ux
, .less
, .scss
, .css
, .json
, .md
, .html
, .qxml
, .wxml
.
๐ Prettier the code under the specified path.
arya prettier index.js
# ๐ Or Use Alias
arya p ./src/**/**/*.js
# ๐๐ Or Use Alias & Wildcard
arya p .
๐ฌ Listen for code changes in the specified path and prettier them.
arya watcher index.js
# ๐ Or Use Alias
arya w ./src/**/**/*.js
# ๐๐ Or Use Alias & Wildcard
arya w .
It is worth mentioning that the code formatting of this project is handled by arya w .
. Thanks to myself for developing this arya jarvis
in my spare time, I am super like it.
๐ Used to quickly build a local web server.
arya server
# ๐ Or Use Alias
arya s
๐ One-click preview of the specified Markdown file
arya markdown README.md
arya markdown ./nice-project/README.md
# ๐ Or Use Alias
arya m README.md
Watcher (-w
, --watch
)
By default, the Markdown
file you specify will not be listened. You can enable the monitor function by adding the -w
option to refresh your preview page in real time. See the example below๏ผ
arya markdown README.md -w
arya markdown README.md --watch
โก๏ธ Find your local IP address and print it.
arya ip
๐ View programs that occupy the specified port.
arya port 8080
๐ท Generate QR code for specified text
arya qrcode "https://www.jeffjade.com/"
arya qrcode "ๆๆดๅนฝ่่ฝฉ่ฝฉไธป"
Save (-s
, --save
)
arya qrcode "https://site.lovejade.cn/" -s
arya qrcode "https://www.lovejade.cn/" --save
โ๏ธ Clear the terminal screen if possible
arya clear
# Or
arya c
On Mac OS, if you want to implement this function, you can run the clear
command on the terminal; but this is not particularly convenient; you can use oh-my-zsh
to configure the command alias in the .zshrc
file: alias cls= 'clear'; in this case, running cls
is enough to clear the terminal screen content; and this is another case on Windows systems; in this case, using arya c
is a pretty good choice.
๐ท Greyscale: remove colour from the image.
arya img:greyscale <path>
# ๐ Or Use Alias
arya igs <path>
# local folder
arya igs ./assets/images
# local image file
arya igs ./assets/images/logo.png
# online image address
arya igs https://www.lovejade.cn/logo.png
All processed pictures are placed in a new folder: arya-greyscale-imgs
. Supported Image Types: .bmp
, .gif
, .jpeg
, .jpg
, .png
, .tiff
.
๐ List the script commands in package.json.
arya ls
# ๐ Or Use Alias
arya l
In addition, arya jarvis is still implanting more useful features, if you have any needs, you can tell me, or expand on this basis. If you encounter any problems during use, you can always follow me feedback. Wish: Life is happy and work is well.
Recommended links
- ๆธ ้ฃๆๆ่ฝฉ
- ้้ฅ่ชๅจ่ฝฉ
- ๆๆดๅนฝ่่ฝฉ
- ้่ฝฉไนๅซ่
- ๆ ็ถๅฎๆณไบญ
- ้ๆด่ฝฉๅซ่
- ๅพๅไน้พ ๐ฅ
- SegmentFault
- X | MarshalXuan
License
Copyright (c) 2019-present, nicejade.
6 months ago
2 years ago
3 years ago
3 years ago
3 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago