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

gapp

v1.4.8

Published

Automate Development

Downloads

120

Readme

gapp - in progress

npm install -g gapp

Table of Contents

  • Yeoman Generators
  • Command Line Conditionals
  • Create a Request Server
  • Npm Install
  • Npm Uninstall
  • Shell

With gapp, yeoman has been simplified. There is no need to run the introductory methods. For example, with the yeoman angular generator, if you don't have it, you would have to run

npm install -g generator-angular

Then

yo angular

In gapp you run

gapp --gen angular

If you don't have the generator, it will install it then run the generator automatically. To run sub-generators you still have to use yo. eg.

yo angular:controller

But yo comes as a global package with gapp

Example:

gapp if $TOMCAT_HOME === '/Library/Tomcat' then 'echo Found Tomcat' elseif $NODE_ENV === 'production' then 'echo in production mode' else 'echo nothing was true!'

gapp can perform

  • if
  • if -> else
  • if -> elseif -> else

At the moment

Suggested by toish!

Options:

  • serve (--serve) [required] Route from which to serve
  • type (--type) [Default: get] Type of route available types [get, post, delete, put]
  • file (--file) or message (-m) [required] File/Message returned from route
  • port (-p) [Default: 3000]
  • static (--static) Static folder served

Examples:

gapp --serve /route --type get --file app/index.html --static app/public -p 8080
gapp --serve /route --type get -m 'This is the /get route!' --static app/public -p 8080

LOCAL

Install to project dependencies

gapp -i package

Same as

npm install --save package

Install to project dev dependencies

gapp -id package

Same as

npm install --save-dev package

GLOBAL

gapp -ig package

Same as

npm install -g package

GLOBAL AND LOCAL DEPENDENCIES

gapp -igs package

Same as

npm install -g --save package
gapp -igd package

Same as

npm install -g --save-dev package
gapp -u package

Same as

npm uninstall -g package
gapp -ul package

Same as

npm uninstall package

With gapp you can combine all of the previous commands and also run shell commands chained through gapp.

gapp -r echo im running some command!

A shell command can only be strung together if it last in the chain or the only command being ran. Otherwise use quotes/singles quotes.

PROPER

gapp -ig package -u anotherpackage --gen angular -r echo im saying something!

PROPER

gapp -ig package -u anotherpackage -r 'echo im saying something!' --gen angular

IMPROPER

gapp -ig package -u anotherpackage -r echo im saying something! --gen angular

gapp is picky when it comes to subsequent variables.!

License

MIT © Google