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

arjan-cli

v0.3.4

Published

Mutli CLI for arjan tools

Downloads

2

Readme

arjancli

Mutli CLI for arjan tools

oclif Version Downloads/week License

Usage

$ npm install -g arjan-cli
$ arjan COMMAND
running command...
$ arjan (-v|--version|version)
arjan-cli/0.3.1 linux-x64 node-v14.4.0
$ arjan --help [COMMAND]
USAGE
  $ arjan COMMAND
...

Commands

arjan audit

Audit your sites performance during development

USAGE
  $ arjan audit

OPTIONS
  -d, --dir=dir              Directory path to serve. default is root (relative to the path in which you run the
                             command)

  -f, --file=file            Path of the page you want to audit. default is index.html

  -p, --port=port            Port used for the test server. Default is 8080.

  -t, --threshold=threshold  [default: 0.8] Integer value from 0 to 1 that represents what you consider to be an
                             acceptable lighthouse score for your site. Its very similar to what you would consider an
                             acceptable school test grade.

DESCRIPTION
  ...
  Audit your sites performance and SEO using Google's lighhouse 6.

See code: src/commands/audit.js

arjan delete

Describe the command here

USAGE
  $ arjan delete

OPTIONS
  -n, --name=name  name to print

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/delete.js

arjan deploy DOMAIN ACTION [SETUP]

Deploy static sites to AWS

USAGE
  $ arjan deploy DOMAIN ACTION [SETUP]

ARGUMENTS
  DOMAIN  name of the site i.e. yoursite.com

  ACTION  (create|update|import|delete) choose an action to perform. you can create, update, import your stack or upload
          files to your bucket.

  SETUP   (dev|test|prod|custom) [default: dev] setup for the site - dev, test, production or custom

OPTIONS
  -c, --cdn            creates a CloudFront distribution for your site.
  -e, --error=error    [default: error.html] name of the error document

  -h, --https          creates and validates a TLS certificate for your site. If you arent using a route53 DNS you must
                       create a CNAME record manually in your DNS.

  -i, --index=index    [default: index.html] name of the index document. default is index.html

  -r, --route53        creates a Hosted Zone in route 53. Have your current DNS provider page open and ready to add a
                       custom DNS.

  -u, --upload=upload  name of a specific file or directory to add to your site. To add all files/dirs from your root
                       use / or *

  -w, --www            creates a www s3 bucket that reroutes requests to the index.

DESCRIPTION
  ...
  Deploy static sites to the AWS Cloud using Cloudformation templates.

See code: src/commands/deploy.js

arjan help [COMMAND]

display help for arjan

USAGE
  $ arjan help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

arjan init [PROFILE] [REGION]

Describe the command here

USAGE
  $ arjan init [PROFILE] [REGION]

ARGUMENTS
  PROFILE  [default: default] AWS Profile
  REGION   [default: us-east-1] AWS Region

OPTIONS
  -g, --global  Guides you through your first time setup. Including AWS IAM user creation.

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/init.js

arjan localize LANGUAGE [FILES]

Localize and translate HTML files

USAGE
  $ arjan localize LANGUAGE [FILES]

ARGUMENTS
  LANGUAGE  origin language of the file/s.

  FILES     name of the file you want to translate -only html files accepted. Use all to translate all of your html
            files (default).

OPTIONS
  -b, --backwards            Update JSON locale accoridng to changes made in the HTML file. Must be used together with
                             the update flag.

  -c, --create               Create locale/s for your site. When used with translate flags, it generates a translated
                             version of the locale and the HTML.

  -e, --export               Creates a CSV file for your JSON locale.

  -i, --import               Update JSON locale from changes made in the CSV file

  -t, --translate=translate  desired translation language. You may apply this flag multiple times to translate into
                             multiple languages.

  -u, --update               Update HTML file accoridng to changes made in the JSON locale.

DESCRIPTION
  ...
  Automatically localize and translate your HTML sites. Uses Amazon translate for translations.

See code: src/commands/localize.js

arjan optimize [FILES]

Optimize static assets

USAGE
  $ arjan optimize [FILES]

ARGUMENTS
  FILES  path of the files you want to optimize. Ommit the argument or use / to translate all of your html files
         (default).

OPTIONS
  -c, --css            minifiy css using cssnano

  -i, --input=input    Name of the input directory that contains all the scripts for your project. Default is js. To use
                       the root use

  -j, --js             compress javascript with terser.

  -o, --output=output  desired output directory. Default is dep_pack.

  -r, --responsive     resizes images efficiently for each type of device (sm, md, lg), then replaces each image
                       instance in the html files with a picture tag.

  -w, --webp           saves a webp version of each image, then replaces each image instance in the html files with a
                       picture tag.

  --img                compress images and if possible maintain the format. otherwise its converted to png.

DESCRIPTION
  ...
  Uses Webpack to minify your html/css/js files, compress your pictures and more.

See code: src/commands/optimize.js

arjan start

Describe the command here

USAGE
  $ arjan start

OPTIONS
  -p, --port=port  [default: 8080] number of the desired port

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/start.js

arjan upload DOMAIN [FILES]

Describe the command here

USAGE
  $ arjan upload DOMAIN [FILES]

ARGUMENTS
  DOMAIN  root domain of your site

  FILES   path of the file/s you want to upload. Providing none or / will upload all the files in your current
          directory.

OPTIONS
  -d, --dir  path of a directory you want to upload to your site

DESCRIPTION
  ...
  Extra documentation goes here

See code: src/commands/upload.js