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 🙏

© 2025 – Pkg Stats / Ryan Hefner

gulp-es6-browserify-boilerplate

v1.0.1

Published

Boilerplate to start with simple JS project with automation

Downloads

2

Readme

gulp-es6-browserify-boilerplate

Project tested with node v 6.2.2

A very basic boilerplate to start your Javascript project with ES6 script and using Browserify module bundler and Less css preprocessor.

Browserify lets you require('modules') in the browser by bundling up all of your dependencies.

  • The aim of this package is to start basic web project which usually have JS and css (less css) files, build them for release by compiling ES2015 code and concatenate multiple js and npm bundles into single file using Browserify and do the same for css style sheets.

  • Bundling done with simple commands using Gulp which is famous build system to automate build process.

Install

First, clone the repo via git:

git clone https://github.com/mizmaar3/gulp-es6-browserify-boilerplate your-project-name

And then install dependencies.

$ cd your-project-name && npm install

Build

Run this command to build and bundle the project.

$ npm run build

or simple run

$ gulp

To enable source mapping please run

$ npm run build:dev

inside your project folder

Start Server

To start local server please run

$ npm run start

and goto http://127.0.0.1:9300 to test if code worked. You should get some text on the page.

DevTools

Toggle Chrome DevTools

  • OS X: Cmd Alt I or F12
  • Linux: Ctrl Shift I or F12
  • Windows: Ctrl Shift I or F12

Example Code Explanation

The JS folder

  • So JS folder have three utility files and one main.js file which using utilities and showing some results in browser console. Browserify will do the magic for bundling. Everything which Require in main.js or in util files will be appended into bundle.js after building the project. array-union.js using underscore.js to union some sets while get-mime-type.js using npm package called simple-mime to get mimetype of a file. As utilities files have ES6 code it will be compiled by babel js after that Browserify will append all dependencied into single bundle.js file... Yes even whole underscore.js can be found in bundle.js and of course whole simple-mime package and its dependencies as well.

The LESS folder

  • Less folder contains .less files which will be compiled with gulp-less and concatenated into single file style.css, can be found in dist folder after building project.