Giter Site home page Giter Site logo

nicejade / arya-jarvis Goto Github PK

View Code? Open in Web Editor NEW
41.0 4.0 5.0 922 KB

๐Ÿ›  Designed to save developers more time and energy. https://www.jeffjade.com/

Home Page: https://arya.lovejade.cn/

License: MIT License

JavaScript 100.00%
frontend developer toolkit nodejs prettier jarvis arya front-end-development quickapp

arya-jarvis's Introduction

ARYA JARVIS

Designed to save developers more time and energy.

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

npm i arya-jarvis -g
# Or
yarn global add arya-jarvis

Usage

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://nicelinks.site/" -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

License

MIT

Copyright (c) 2019-present, nicejade.

arya-jarvis's People

Contributors

dependabot[bot] avatar linyimin0812 avatar nicejade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arya-jarvis's Issues

Arya Jarvis more features list

  • ไธ€้”ฎ้ข„่งˆ Markdown ๆ ผๅผ Web PPT
  • ไธ€้”ฎๅŽ‹็ผฉๆŒ‡ๅฎš๏ผˆๆˆ–ๆŸๆ–‡ไปถๅคนไธ‹็š„๏ผ‰ๅ›พ็‰‡

generateQrimgcode typo

generateQrimgcode typo cause runtime error:

/home/linyimin/projects/arya-jarvis/bin/index.js:148
    generateQrimgcode(string, commands)
    ^

ReferenceError: generateQrimgcode is not defined
    at Command.program.command.description.option.option.action (/home/linyimin/projects/arya-jarvis/bin/index.js:148:5)
    at Command.listener (/home/linyimin/projects/arya-jarvis/node_modules/commander/index.js:291:8)
    at Command.emit (events.js:182:13)
    at Command.parseArgs (/home/linyimin/projects/arya-jarvis/node_modules/commander/index.js:671:12)
    at Command.parse (/home/linyimin/projects/arya-jarvis/node_modules/commander/index.js:459:21)
    at Object.<anonymous> (/home/linyimin/projects/arya-jarvis/bin/index.js:197:9)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.