Comparing version 0.1.1 to 0.1.2
@@ -0,1 +1,3 @@ | ||
// Run `node benchmark` | ||
var fs = require('fs') | ||
@@ -2,0 +4,0 @@ var steno = require('./') |
{ | ||
"name": "steno", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "File writer", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -13,2 +13,4 @@ # steno ![](http://img.shields.io/npm/v/steno.svg?style=flat) ![](http://img.shields.io/travis/typicode/steno.svg?style=flat) | ||
This code runs in `2ms` versus `~5500ms` with `fs.writeFileSync`. | ||
## API | ||
@@ -22,5 +24,5 @@ | ||
Writes data to filename or buffers it if filename is being written. | ||
Writes data to file. If file is already being written, data is buffered until it can be written. | ||
__writer.callback__ | ||
__writer.setCallback(cb)__ | ||
@@ -34,5 +36,5 @@ Use it to set a callback that will be executed between two writes. Useful for atomic writing, logging, delaying, ... | ||
if (err) throw err | ||
next() | ||
next() // next must be called | ||
}) | ||
}) | ||
``` | ||
``` |
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
4934
89
38