Socket
Socket
Sign inDemoInstall

broccoli-es-dependency-graph

Package Overview
Dependencies
32
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-es-dependency-graph

broccoli-es-dependency-graph ============================


Version published
Weekly downloads
1
Maintainers
1
Install size
2.32 MB
Created
Weekly downloads
 

Readme

Source

broccoli-es-dependency-graph

Build Status Dependency Status NPM version

Broccoli plugin for obtaining the dependency graph from ES6 modules.

Limitations

See limitations in es-dependency-graph-limitations.

API

depGraph(inputTree, [options])

Generates a JSON file with the dependency information for all the files in the inputTree. Options:

  • dest: name of the JSON file to generate. Default: dep-graph.json.
  • includeBindings: whether to include the names of all the imports and exports in each module. Default: false.
  • moduleName: a function that modifies the name of each module. It received two parameters: the current path and the path to the parent module in the case of an import. You can use this function to remove file extensions from module names and normalize them across your project. Example:
var result = depGraph(tree, {
    moduleName: function (importPath, modulePath) {
        return path.join(path.dirname(modulePath), importPath);
    }
});

License

This software is free to use under the Yahoo Inc. BSD license. See the LICENSE file for license text and copyright information.

Contribute

See the CONTRIBUTING file for info.

Keywords

FAQs

Last updated on 11 Jul 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc