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

generator-oniyi

v4.0.1

Published

An opinionated generator for node.js modules. Making use of ESLint, Prettier, Jest, Travis, Coveralls, Husky, and Lint-Staged

Downloads

28

Readme

generator-oniyi NPM version Build Status Dependency Status Coverage percentage

An opinionated generator for node.js projects.

Mostly based on generator-node, so thanks to the team over there.

It creates a boilerplate project setup composed from multiple sub-generators and finally installs dependencies via npm.

options

All boolean options can be set to false with --no-<option> (e.g. --no-git)

  • git; (default: true) - Execute git sub-generator
  • boilerplate; (default: true) - Execute boilerplate sub-generator
  • license; (default: true) - Execute license sub-generator
  • readme; (default: true) - Execute readme sub-generator
  • travis; (default: true) - Execute travis sub-generator
  • coveralls; (default: true) - Include coveralls configuration
  • project-root; (default: 'lib') - Relative path to the project code root (folder in repo where code resides)
  • [name]: (default: dirname) - The name for this module
  • [github-account]; (default: @<scope> from name or resolved from authorEmail) - The name of the account on Github that hosts your repository
  • [repository-name]; (default: name of the module; repository from package.json or from git remote origin) - The name of your repository on Github

boilerplate generator

  • copies devDependencies and scripts from the generator's package.json into your project's package.json
  • creates .npmrc and .npmignore files
  • creates lib/index.js and lib/__tests__/<module-name>.test.js
  • creates eslint config files (combines rules from airbnb-base and prettier)
  • creates jest.config.js
  • creates prettier.config.js
  • creates config files for git hook tooling huskyrc.js and lint-staged.config.js

git generator

This sub-generator will not overwrite any existing repository data in package.json.
It will however attempt to register a ssh url version of package.json#repository[.url] as git remote origin if no origin exists yet.

  • when git option is set to false, coveralls and travis are false / disabled automatically
  • add .gitignore and .gitattributes files
  • prompts for github account (see option github-account)
  • prompts repository name (see option repository-name)
  • adds repository information to package.json
  • adds git remote origin if none exists

readme generator

  • generates boilerplate readme if none exists alreads
  • composes readme info from propmts collected upfront (user, lincese, badges)

external sub-generators

  • invokes generator-travis when travis option is true. When coveralls option is also true, will add after_script in travis config to publish coverage report data to coveralls.
  • invokes generator-license and default to Apache-2.0 license.

License

Apache-2.0 © Benjamin Kroeger