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-es-next

v1.0.0-rc.5

Published

Feature-rich ES6 module generator for browser and nodejs

Downloads

5

Readme

Build Status Dependencies XO code style

Modern, ready to use, setup-free ES6 (and above) module generator for browsers and node (in development).

Features

  • ES6 code anywhere: sources, tests, configs
  • Transpilation with babel
  • Bundling with webpack 2
  • Unit tests with jest or ava
  • npm as a task runner
  • Linting with XO
  • Continuous integration with Travis
  • Code coverage and online reports via Codecov
  • Dependencies info by David
  • Built-in yarn support
  • Choose between yargs, inquirer, vorpal as cli handler
  • Clean folder structure after npm publish

Install

The boilerplate is a yeoman generator, what means you need install it at first and then the boilerplate itself:

npm i -g yo
npm i -g generator-es-next

To run boilerplate simply run it in the empty folder.

mkdir example-module && cd example-module
yo es-next

Then you have to answer several questions and the app will be generated.

To review all the available options, run the generator with -h flag:

yo es-next -h

Integration with 3rd party services

Generated app is set up to work with several 3rd party service. You just need to authorize your app on them. Read below for further instructions.

Travis

Travis is a continuous integration service that manages building and testing your app automatically by handling git hooks.

Setup

Visit travis and authorize your app. From this point travis starts watching your pushes/PRs.

David

Helps keeping dependencies of your app up to date.

Setup

Is not needed. Just visit https://david-dm.org/githubName/appName for info about dependencies.

Codecov

Service that creates code coverage reports and provides statistics for your app.

Setup

Go to codecov and authorize your app. Now after every travis build a report will be created.

In order to use reports manually (without help of travis), use npm run coverage to generate report and npm run coverage:report -- -t :repository-token to upload it. Find :repository-token on the project's page at codecov.