Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

prebuild

Package Overview
Dependencies
Maintainers
2
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prebuild

A command line tool for easily doing prebuilds for multiple version of node/iojs on a specific platform


Version published
Weekly downloads
11K
decreased by-2.37%
Maintainers
2
Weekly downloads
 
Created
Source

prebuild

A command line tool for easily doing prebuilds for multiple version of node/iojs on a specific platform

npm install -g prebuild

Usage

cd a-native-module
# create prebuilds for iojs v2.4.0 and node 0.12.7 and write them to ./prebuilds/
prebuild -t v2.4.0 -t 0.12.7

For more options run prebuild --help. The prebuilds created are compatible with node-pre-gyp

Github integration

Prebuild supports uploading/downloading prebuilds to Github releases. To upload prebuilds simply add the --upload [github-token] option

prebuild -t v2.4.0 -t 0.12.7 -u put-your-github-personal-token-here

To download a prebuild for your specific platform simply use the --download flag

prebuild --download

If no suitable prebuild is found for the current platform / node version prebuild will simply fallback to run node-gyp rebuild.

The downloaded prebuilds will be cached in your npm cache meaning you'll only have to download them once.

ABI

You just need to do a prebuild for every version of node/iojs that have new ABI (application binary interface). As of writing this to support all versions of node (>0.8.0) and iojs do

prebuild -t 0.10.26 -t 0.12.7 -t 1.0.1 -t 1.8.1 -t 2.4.0

Optionally to always build for the above versions you can add a rc file to ~/.prebuildrc with the following content

target[] = 0.10.26
target[] = 0.12.7
target[] = 1.0.1
target[] = 1.8.1
target[] = 2.4.0

License

MIT

FAQs

Package last updated on 30 Jul 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc