Socket
Book a DemoInstallSign in
Socket

systemjs-plugin-node-binary

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-plugin-node-binary

SystemJS Node Binary Plugin ===

latest
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 12 Mar 2016

Did you know?

Socket

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