New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

garbage-stream

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

garbage-stream

Stream of random json data

  • 0.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

garbage-stream

npm install garbage-stream

A stream of randomly generated garbage json data. Garbage generator is node-garbage with few bugfixes.

Example

var GS = require('garbage-stream')

var gs = new GS({
  'boolean': '',
  'array': 2,
  'string': '',
  'number': '',
  'object': 3
})

gs.on('readable', function () {
  while(true) {
    console.log(gs.read())
  }
})

// output
&=f5I
false
true
|QjD46`	
[ undefined ]
-1.1114219485428944
+O	V"RLrm@y;nQN-c
6.793499248478277
[ undefined ]
[ '(@L ' ]
12.597547340430635

Options

var gs = new GarbageStream({})

Constructor takes an object with options for node-garbage.

Keywords

FAQs

Package last updated on 16 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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