Socket
Socket
Sign inDemoInstall

broccoli-es6-module-facade

Package Overview
Dependencies
21
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    broccoli-es6-module-facade

Broccoli plugin to provide an ES6 facade for modules that expose globals.


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

Readme

Source

Broccoli ES6 Module Facade

Installation

npm install -D broccoli-es6-module-facade

Example

var createES6Facades = require('broccoli-es6-module-facade');

var vendorFacades = createES6Facades({
  description: 'ES6Facades (vendor)'
  modules: {
    jquery: {
      defaultExport: 'jQuery',
      exports: {
        ajax: 'jQuery.ajax',
        Deferred: 'jQuery.Deferred'
      }
    }
  }
});

Configuration

createES6Facades(options)


options.modules {Object} (Required)

A hash keyed with the names of the module facades that should be created. Each value should itself be a hash with two optional keys:

  • defaultExport - an expression that will be the default export of the module
  • exports - a mapping from identifiers to expressions representing the module's other exports

License

This project is distributed under the MIT license.

Keywords

FAQs

Last updated on 15 Oct 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