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

jae-bradley-npm-package-creator-cli

v1.2.1

Published

Creates starting npm package structure using base template I like

Downloads

5

Readme

jae-bradley-npm-package-creator-cli

Greenkeeper badge

CLI that creates the starting directory for npm packages using a template I like

Features

Files

  • .babelrc
  • .eslintignore
  • .eslintrc
  • .gitignore
  • .npmignore
  • .travis.yml
  • commitlint.config.js
  • package-lock.json
  • package.json

Contents

.babelrc

{
  "presets": ["@babel/preset-env"]
}

.eslintignore

coverage/*
build
node_modules

.eslintrc

{
  "extends": "airbnb-base",
  "env": {
    "jest": true
  }
}

.npmignore

.DS_Store
.eslintcache
node_modules
npm-debug.log
.travis.yml
src/
test/
*.test.js
coverage/

.travis.yml

language: node_js
cache:
  directories:
    - ~/.npm
notifications:
  email: true
node_js:
  - '8'
before_install:
  - npm install -g npm@5
  - npm install -g greenkeeper-lockfile@1
jobs:
  include:
    - stage: test
      script:
        - npm run compile
        - npm run lint
        - npm run test
        - npm run is-es5
      before_script: greenkeeper-lockfile-update
      after_script: greenkeeper-lockfile-upload
    - stage: deploy
      if: branch = master
      script: npm run travis-deploy-once "npm run semantic-release"

commitlint.config.js

module.exports = { extends: ['@commitlint/config-angular'] };

package.json

Dynamically generated using the specified package name, package description, author email address, and GitHub username.

Will look something like

{
  "version": "0.0.0-development",
  "main": "index.js",
  "scripts": {
    "codecov": "codecov",
    "commitmsg": "commitlint -e $GIT_PARAMS",
    "compile": "babel -d build/ src/ --ignore node_modules,*.test.js",
    "lint": "eslint --ext .js .",
    "test": "jest --coverage --passWithNoTests",
    "prepublishOnly": "npm run compile",
    "semantic-commit": "commit",
    "semantic-release": "semantic-release",
    "travis-deploy-once": "travis-deploy-once"
  },
  "jest": {
    "testEnvironment": "node"
  },
  "keywords": [],
  "name": "specified package name",
  "description": "specified package description",
  "author": "[email protected]",
  "repository": {
    "type": "git",
    "url": "https://github.com/specified-github-user-name/specified-package-name"
  },
  "bugs": {
    "url": "https://github.com/specified-github-user-name/specified-package-name/issues"
  },
  "homepage": "https://github.com/specified-github-user-name/specified-package-name/#readme",
  "devDependencies": {
    "@babel/cli": "whatever the latest version is",
    "@babel/core": "whatever the latest version is",
    "@babel/preset-env": "whatever the latest version is",
    "@commitlint/cli": "whatever the latest version is",
    "@commitlint/config-angular": "whatever the latest version is",
    "@commitlint/prompt": "whatever the latest version is",
    "@commitlint/prompt-cli": "whatever the latest version is",
    "babel-core": "^7.0.0-bridge.0",
    "babel-jest": "whatever the latest version is",
    "codecov": "whatever the latest version is",
    "eslint": "whatever the latest version is",
    "eslint-config-airbnb-base": "whatever the latest version is",
    "eslint-plugin-import": "whatever the latest version is",
    "husky": "whatever the latest version is",
    "jest": "whatever the latest version is",
    "semantic-release": "whatever the latest version is",
    "travis-deploy-once": "whatever the latest version is",
  }
}

Note: I'm using a specific version of babel-core (^7.0.0-bridge.0) because @babel/core doesn't play well with jest, right now.

.gitignore

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

build
.DS_Store