Socket
Socket
Sign inDemoInstall

broccoli-js-module-formats

Package Overview
Dependencies
24
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-js-module-formats

broccoli-js-module-formats ==========================


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Install size
1.30 MB
Created
Weekly downloads
 

Readme

Source

broccoli-js-module-formats

Build Status Dependency Status NPM version

Broccoli plugin for obtaining files that use a particular module system.

Limitations

ES modules without import or export statements will not be detected.

API

pickModules(inputTree, options)

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

  • type: Required. Module format to filter files by. Any of cjs, amd, es or yui.

Example

var pickModules = require('broccoli-js-module-formats');

var es6Modules = pickModules('./src/', {
    type: 'es'
});

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