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

spawn-cli

v0.1.1

Published

Basic tool that helps you start your projects easily using simple templates

Downloads

15

Readme

Welcome to Spawn

Spawn is a basic tool that helps you start your projects easily using simple templates.

Majority of project templates just need files copied from a template folder and replace placeholders inside files throughout that folder with certain project specific value (e.g: project name, project version, etc).

Enter Spawn: put a template folder on GitHub (for now), add a config file to that folder enumerating the variables to replace throughout the folder and you're set.

Every time you'll need a new project based on that template, just call spawn <GitHubUser>/<GitHubRepo>. Spawn will prompts you to enter values for template variables defined in the config and you're good to go.

Installation

In order to use Spawn you'll need Node and npm, which usually comes bundled with Node.

After installing Node and npm, just run the following command:

npm install spawn-cli -g

On Unix machines, depending on your system configuration, you might need to run the above command using sudo.

Usage

I've setup a repo to help you see Spawn in action and how easy is to set-up a template repo: hello-spawn

You can see that there is a config file named spawn.json that contains one key values and it's value is an object of which the keys are the variable names and the values are the default for the variable names.

Now let's spawn an instance of hello-spawn on your machine.

Go inside an empty folder on your disk and type the following command:

spawn surdu/hello-spawn

You'll notice that spawn will start asking you your name and the version, as specified in the config.

After you provide all this info, you'll have a fresh copy of the hello-spawn project spawned in your current folder.

This is pretty much alt there is to it, for now at least.