<commit_before># Paratask - Node.js Parallel Tasks Manager
Paratask is a tool that will execute your JavaScript code in __parallel__ using the full potential of multi-process programming.
In contrast to asynchronous task management, Paratask will create a child Node.js process in which your task will "live".

__Warning:__ This means that your task function will be able to get only a non-functional context dependencies. More into in the examples below.


## Install
You can install Paratask with the Node Package Manager:
```shell
npm install paratask
```

## Dependencies
Paratask uses only general Node.js modules that do not need additional installation: `fs` and `child_process`.


## Examples
Both `task_1` and `task_2` will fork a Node.js process,
execute their functions and when both call `callback()`,
the final error state and results will be printed in the console.

__Warning:__ `context` property can only be a valid `JSON.parse()` value (i.e. no functions allowed).

```javascript
var paratask = require('paratask');

var task_1 = {
  fork: function (callback) {
    // Some calculation using the 'count' context var
    var result = count * 10;
    callback(null, result);
  },
  context: {
    count: 10
  }
};

var task_2 = {
  fork: function (callback) {
    // Some calculation using the 'count' context var
    var result = count * 10;
    callback(null, result);<commit_msg>Update the Description and set (not working npm) Install texts General readme.md v1.1.0<commit_after># Paratask - Node.js Parallel Tasks Manager
Paratask is a tool that will execute your Node.js code in __parallel__ using the full potential of multi-process programming.
In contrast to asynchronous task management, Paratask will create a child Node.js process in which your task function will 'live'.

__Warning:__ This means that your task function will be able to get only a non-functional context dependencies. More into in the examples below.


## Install
Duo to [npm](http://npmjs.org) current malfunction, you can get Paratask from [this repo](https://github.com/IvanDimanov/paratask).

## Dependencies
Paratask uses only general Node.js modules that do not need additional installation: `fs` and `child_process`.


## Examples
Both `task_1` and `task_2` will fork a Node.js process,
execute their functions and when both call `callback()`,
the final error state and results will be printed in the console.

__Warning:__ `context` property can only be a valid `JSON.parse()` value (i.e. no functions allowed).

```javascript
var paratask = require('paratask');

var task_1 = {
  fork: function (callback) {
    // Some calculation using the 'count' context var
    var result = count * 10;
    callback(null, result);
  },
  context: {
    count: 10
  }
};

var task_2 = {
  fork: function (callback) {
    // Some calculation using the 'count' context var
    var result = count * 10;
    callback(null, result);
{'fraction_non_alphanumeric': 0.08396161754626456, 'fraction_numerical': 0.007882111034955449, 'mean_word_length': 4.0942408376963355, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1711200', 'n_tokens_mistral': 831, 'n_tokens_neox': 791, 'n_words': 379}