Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "apparat", | ||
"description": "", | ||
"author": "Maximilian Krüger <kruemaxi@googlemail.com> (http://github.com/snd)", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "apparat is a simple but powerful way to organize async code for nodejs", | ||
"homepage": "http://github.com/snd/apparat", | ||
"author": { | ||
"name": "Maximilian Krüger", | ||
"email": "kruemaxi@gmail.com", | ||
"url": "http://github.com/snd" | ||
}, | ||
"bugs": { | ||
"url": "http://github.com/snd/apparat/issues", | ||
"email": "kruemaxi@gmail.com" | ||
}, | ||
"repository": { | ||
@@ -10,6 +19,15 @@ "type": "git", | ||
}, | ||
"licenses": { | ||
"type": "MIT", | ||
"url": "git://github.com/snd/apparat/LICENSE" | ||
}, | ||
"engines": { | ||
"node": ">=0.8.5" | ||
}, | ||
"dependencies": { | ||
"coffee-script": "1.4.0" | ||
}, | ||
"devDependencies": { | ||
"nodeunit": "0.7.4" | ||
} | ||
} |
@@ -1,15 +0,18 @@ | ||
# Apparat | ||
# apparat | ||
a simple yet powerful way to organize async code | ||
[![Build Status](https://travis-ci.org/snd/apparat.png)](https://travis-ci.org/snd/apparat) | ||
#### Install | ||
apparat is a simple but powerful way to organize async code for nodejs | ||
### install | ||
npm install apparat | ||
#### Usage Example | ||
### use | ||
read domain from file `domain.txt`. | ||
in parallel | ||
write resolved IPV4 addresses to `addresses4.txt` and | ||
write resolved IPV6 addresses to `addresses6.txt`. | ||
write resolved IPV6 addresses to `addresses6.txt` in parallel. | ||
remove `domain.txt` when both files have been written successfully. | ||
@@ -21,5 +24,5 @@ | ||
Apparat = require 'apparat' | ||
apparat = require 'apparat' | ||
{receive, send, onError, debug} = new Apparat | ||
{receive, send, onError, debug} = apparat | ||
@@ -38,6 +41,6 @@ debug console.log | ||
receive 'addresses4', (addresses) -> | ||
fs.writeFile 'adresses4.txt', addresses.join('\n'), send 'addresses4 written' | ||
fs.writeFile 'addresses4.txt', addresses.join('\n'), send 'addresses4 written' | ||
receive 'addresses6', (addresses) -> | ||
fs.writeFile 'adresses6.txt', addresses.join('\n'), send 'addresses6 written' | ||
fs.writeFile 'addresses6.txt', addresses.join('\n'), send 'addresses6 written' | ||
@@ -51,2 +54,2 @@ receive 'addresses4 written', 'addresses6 written', -> | ||
#### License: MIT | ||
#### license: MIT |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
12512
1
1
53
1
1
7
+ Addedcoffee-script@1.4.0
+ Addedcoffee-script@1.4.0(transitive)