Socket
Socket
Sign inDemoInstall

steno

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steno - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

2

benchmark.js

@@ -0,1 +1,3 @@

// Run `node benchmark`
var fs = require('fs')

@@ -2,0 +4,0 @@ var steno = require('./')

2

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

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