Socket
Socket
Sign inDemoInstall

broccoli-es6-import-validate

Package Overview
Dependencies
69
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-es6-import-validate

A Broccoli plugin for validating es6 imports


Version published
Maintainers
1
Created

Readme

Source

broccoli-es6-import-validate

A Broccoli plugin for validating ES6 module imports

Usage

module.exports = function (broccoli) {
    var validateEs6 = require('broccoli-es6-import-validate');

    var es6Files = broccoli.makeTree('script');

    var validatedEs6Files = validateEs6(es6Files, {
    	// Whitelist modules here
        whitelist: {
        	// Name of module, and array of named exports (use default name for default export)
            resolver: ['default']
        },
        // Customize module names here
        moduleName: function (name, fullPath) {
        	return name;
        }
    });

    return [validatedEs6Files];
};

License

Copyright 2014 Jacob Gable, MIT License (See repo for source of license).

Keywords

FAQs

Last updated on 30 May 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