npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

arya-jarvis

v1.14.0

Published

Arya Jarvis: Designed to save developers more time and energy.

Downloads

42

Readme

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

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.