browserify-extract-ids
Browserify plugin to extract a bundle's module IDs to a file or callback.
Last updated 2 years ago by chrkirk .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install browserify-extract-ids 
SYNC missed versions from official npm registry.

browserify-extract-ids

Browserify plugin to export a bundle's module IDs.

Installation

npm install browserify-extract-ids --save

Usage

// main.js
require('./a');
require('./b');
// a.js
require('c');
// b.js
console.log('do nothing!');
// c.js
console.log('do nothing!');
const extractIds = require('browserify-extract-ids');

browserify()
  .add('./main.js')
  .plugin(extractIds, {
    outputFile: './ids.json'
  });

This will result in a ids.json like the following. (Note: Browserify assigns modules numeric IDs.)

{
  '/some/filepath/a.js': 1,
  '/some/filepath/b.js': 2,
  '/some/filepath/c.js': 3,
  '/some/filepath/main.js': 4
}

Current Tags

  • 0.1.0                                ...           latest (2 years ago)

2 Versions

  • 0.1.0                                ...           2 years ago
  • 0.0.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (4)

Copyright 2014 - 2016 © taobao.org |