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

apparat

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apparat - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

.travis.yml

24

package.json
{
"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"
}
}

25

README.md

@@ -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

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