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

sga

v1.0.3

Published

Project generator with one command

Downloads

2

Readme

Sga

Project generator with one command.

This tool will not only generate skeletons, but also install packages.

It can add Eslint, Babel, Mocha and Chai, Jest seperatly, or a complete webpack project, or a vue-webpack project.

When you run sga -g, it will run git init, add a .gitignore and README.md for you.

Install

npm install -g sga
// or
yarn global add sga

Usages

There is only one command: sga, task is specified by options.

Examples

sga -e

Add eslint and a lint script.

sga -b

Add babel.

sga -nm

Add mocha and chai with npm

webpack with vue

sga -v

Now yarn start and yarn dev are available. Or npm run start and npm run dev

This will add all stuff, so don't run this if eslint or other packages are installed already.

webpack

sga -w

Now yarn start and yarn dev are available. Or npm run start and npm run dev

This will add all stuff, so don't run this if eslint or other packages are installed already.

And you can not add vue later, cuz that option will add all stuff.

All options

    -V, --version  output the version number
    -n, --npm      Use npm this time.
    -y, --yarn     Use yarn this time.
    -i, --init     npm/yarn init.
    -g, --git      Git init.
    -e, --eslint   Add eslint
    -b, --babel    Add babel (module is false).
    -m, --mocha    Add mocha and chai.
    -v, --vue      Add a vue and webpack project.
    -w, --webpack  Add a webpack project.
    -j, --jest     Add jest.
    -h, --help     output usage information

npm or yarn

The tool will first try to locate the package lock file under the current directory, if there isn't, it would check -n and -y, if both of them are not specified, it would use yarn.

License

MIT