Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
node-binary
Advanced tools
Download node binaries for various platforms and architectures, easily
Download node binaries for various platforms and architectures, easily.
var binary = require('node-binary');
binary.download({
os: 'darwin',
arch: 'x64',
version: 'v0.12.0'
}, '/opt/node', function(error, binaryPath) {
if(error) throw error;
console.log('The node binary for OS X x64 was downloaded to ' + binaryPath);
});
Install node-binary
by running:
$ npm install --save node-binary
node-binary
provides a CLI version as well. Install it by running:
$ npm install -g node-binary
You can now download node binaries like this:
$ node-binary download v0.12.0 ~/Downloads --arch x64 --os darwin
Download a nodejs binary to a certain location.
os
is the operating system to download node for.This module curently supports darwin
, win32
, linux
and sunos
.
arch
is the architecture to download node for.This module curently supports x64
and x86
.
version
is the node version to download.It can be a string such as v0.12.0
or simply 0.12.0
.
The directory to download the binary to.
The binary will automatically be renamed to node-<version>-<os>-<arch>[.exe]
.
The callback will be called with a possible error, or with the absolute path to the downloaded binary.
Run the test suite by doing:
$ gulp test
Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:
$ gulp lint
Set mode to 755 for the downloaded binary.
If you're having any problem, please raise an issue on GitHub.
The project is licensed under the MIT license.
FAQs
Download node binaries for various platforms and architectures, easily
The npm package node-binary receives a total of 1 weekly downloads. As such, node-binary popularity was classified as not popular.
We found that node-binary demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.