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

sprout-cli

v1.1.1

Published

command-line interface for sprout

Downloads

34

Readme

sprout-cli

npm tests coverage dependencies

A command-line interface for sprout.

Installation

$ npm install sprout-cli --global

Try 'er out

Try the sprout-express template for generating a boilerplate express app:

$ sprout add express [email protected]:carrot/sprout-express
$ sprout init express ~/Projects/sprout-express-instance

Commands

Sprout can be used directly through the command line to initialize projects. Once installed, it exposes the sprout command, which you can use to add, remove, and/or use your templates. The command line interface stores templates in a user folder, typically ~/.config/sprout. The commands are more or less what you would expect, and are listed below.

sprout add

$ sprout add <name> <src>

Description: Adds a template to your repertoire from src as name. Name represents how you would like the template to be named within sprout. You are required to add a template which can be either a clone url or a path to a local template. If no name is provided, sprout will use the last piece of the template as the name.

Options:

  • -v, --verbose: Verbose mode.

sprout remove

$ sprout remove <name>

Description: Removes the template with the specified name from sprout.

Options:

  • -v, --verbose: Verbose mode.

Aliases: rm, delete

sprout list

$ sprout list

Description: Lists all templates that you have added to sprout.

Aliases: ls, all

sprout init

$ sprout init <name> <target>

Description: Initializes the template with the given name at the given target.

Options:

  • -l [LOCALS [LOCALS ...]], --locals [LOCALS [LOCALS ...]]: Pass locals as options which will override the prompts set in your templates. Locals are passed to the CLI like so: -l key1=value1 key2='value2'

  • -t TAG, --tag TAG: Pass a git tag to generate the template from.

  • -b BRANCH, --branch BRANCH: Pass a git branch to generate the template from.

  • -c CONFIG, --config CONFIG: Pass a JSON or yaml file to pre-define a large set of values, like so:

    {
      "key1": "value1",
      "key2": true,
      "key3": 200
    }

Aliases: new, create

sprout run

$ sprout run <name> <generator>

Description: Run a generator named generator, provided in a template with the given name, on a template instance in the current working directory.

Options:

  • -t TARGET, --target TARGET Optionally pass the path to the template instance (relative to the current working directory).

  • [args, [args ...]] Pass arguments to the generator, like so:

    $ sprout run mvc model User name:string age:integer

License & Contributing