<commit_before># node-bundler

Bundle Node.js in native applications

## Synopsis

This module helps you automate including [Node.js](https://nodejs.org/) in binary distributions of your software. It handles the downloading of the Node.js version you specify, and lets you run npm from within the bundled Node.js environment — which is especially important for modules with native add-ons. It's actually kinda tricky to get this working right, so this module exists to make it so you don't have to worry about those details.

## Usage

An example, using [Gulp](http://gulpjs.com/), minus proper error handling:

```javascript
var nodeBundler = require("node-bundler")

gulp.task("node", function (done) {
  var installer = nodeBundler("dist/my.app", "^4.0.0")<commit_msg>Node.js version compatibily caveat<commit_after># node-bundler

Bundle Node.js in native applications

## Synopsis

This module helps you automate including [Node.js](https://nodejs.org/) in binary distributions of your software. It handles the downloading of the Node.js version you specify, and lets you run npm from within the bundled Node.js environment — which is especially important for modules with native add-ons. It's actually kinda tricky to get this working right, so this module exists to make it so you don't have to worry about those details.

## Compatibility

This module was formerly called iojs-bundler, and as such it has not been tested on versions of Node.js prior to v4.0.0. It is also unlikely to work on Windows — but PRs for Windows support would be welcome!

## Usage

An example, using [Gulp](http://gulpjs.com/), minus proper error handling:

```javascript
var nodeBundler = require("node-bundler")

gulp.task("node", function (done) {
  var installer = nodeBundler("dist/my.app", "^4.0.0")
{'fraction_non_alphanumeric': 0.08770949720670392, 'fraction_numerical': 0.005027932960893855, 'mean_word_length': 4.632075471698113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4833507', 'n_tokens_mistral': 504, 'n_tokens_neox': 481, 'n_words': 235}