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

standard-shared-config

v5.1.2

Published

One shared config to rule them all

Downloads

1,176

Readme

Easy way to create and share your boilerplate configs. One shared config to rule them all:loop::package:

The configuration files is an important part of your project, and as such, you may want to share it with other projects or people. Shareable configs allow you to publish your configuration settings on npm and have others download and use it in their projects.

Install

npm install standard-shared-config

Usage

Create a shared configuration package

  • Create package.json with name, version and description.
  • Create .config directory and copy all the configuration files you want to share.
  • Create .sharedconfig.yml - file containing schema and rules for your shared configuration and specify the usage parameters.
  • Run shared-config build

After completing the command execution, you will get the following structure inside the outputDir:

  • bin/[you shared config name from package]
  • scripts.js - Script commands which will be added to the package.json, see .sharedconfig.yml
  • snapshots.js - snapshots of config files from sharedDir
  • index.js - will be called when your config is applied to copy config files to the project

Now publish your shared configuration package to NPM!

Use shared configuration

  • install your shared configuration package
  • add script with your shared configuration package name to package.json scripts for creating sharable configuration files.
  • override parts of config files in sharedDir, if needed (.config by default)
  • override package scripts in .sharedconfig.yml in sharedDir, if needed (.config by default)
{
  "scripts": {
    "prepare:config": "my-shared-config"
  }
}

Do not forget to add the shared configuration files in the .gitignore, because you no longer need them in the repository

API

Read the API documentation for more information.