systemjs-plugin-node-binary

0.1.2 • Public • Published

SystemJS Node Binary Plugin

Used for loading Node binary files.

Installing

npm

  npm install systemjs-plugin-node-binary

Create a map configuration to the plugin:

System.config({
  map: {
    'node-binary': 'node_modules/systemjs-plugin-node-binary/node-binary.js'
  }
})

jspm

jspm install node-binary

Usage

With package config and an extension:

System.config({
  packages: {
    app: {
      meta: {
        '*.node': {
          loader: 'node-binary'
        }
      }
    }
  }
})

With direct meta configuration:

System.config({
  meta: {
    'path/to/binary.node': {
      loader: 'node-binary'
    }
  }
});

Builds

Builds are not supported - it will always be assumed that the binary load is a dynamic dependency and an exclude in any build.

Readme

Keywords

none

Package Sidebar

Install

npm i systemjs-plugin-node-binary

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • guybedford