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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ebam

v2.0.1

Published

Easily build a module

Downloads

65

Readme

ebam

Install

npm install -g ebam

Contents

Usage

Change directory to where you are authoring your module.

Run ebam init to automatically create an ebam project with config fields in the package.json file. You should also run npm init. You can run npm init before, or after ebam init. Ideally ebam init won't step on any fields created by npm init, and vise versa.

Then run ebam on the command line to build your project.

ebam will create a dist folder and these files:

  • dist/{moduleName}.js
  • dist/{moduleName}.min.js
  • dist/bundle.es.js
  • dist/bundle.js

Additional source maps are also generated for each file.

dist/{moduleName}.js, and dist/{moduleName}.min.js are browser ready downloadable builds.

The programmatic interface

Install locally using npm install ebam.

Create a build file in your project's directory:

const ebam = require('ebam');
//Build your project
ebam({
    "input": "index.js",
    "test": {
      "src": "test/src.js",
      "dest": "test/code.js"
    },
    "transforms": {
      "dangerousForOf": false,
      "dangerousTaggedTemplateString": false
    }
})
.then(v=>console.log('All done!'))
.catch(e=>console.error(e));

You can also get the package config automatically.

const ebam = require('ebam');
//Build your project
ebam.initPackage().then(pack=>{
    //pack is the package.json object
    return ebam(pack.ebam);
})
.then(v=>console.log('All done!'))
.catch(e=>console.error(e));

Versions

There are no notes for version 1.

Version 2

Version 1 uses an ebam.input field instead of ebam.entry. Old configuration should still work.

Version 2 uses the ebam init command instead of relying on a yeoman generator. The yeoman generator should still be useful, but it's use is being phase out.

The code base is somewhat cleaner for ebam under version 2.

About

ebam is a wrapper around rollup that compiles your es2015 module into something consumable by browsers using the rollup-plugin-buble module.

This module is meant to do all the usual things when publishing a browser destined module.

The Config

Use the ebam field in your package.json to configure ebam.

Here is a package.json with an ebam configuration field.

{
  "name": "a-thingy",
  "ebam": {
    "input": "index.js",
    "test": {
      "src": "test/src.js",
      "dest": "test/code.js"
    },
    "transforms": {
      "dangerousForOf": false,
      "dangerousTaggedTemplateString": false
    }
  },
  "main": "dist/bundle.js",
  "jsnext:main": "dist/bundle.es.js",
  "module": "dist/bundle.es.js"
}

Warning ebam will create main, jsnext:main, and module fields in your package.json.

The ebam.transforms field is just like the transforms options that buble accepts. See the buble project for more.

The ebam.test field is a source (src) of a test file, and an output destination (dest) for a compiled version. Use the dest file to test your module in the browser. This can be used when you aren't using some test automation suit.