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

catchart

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

catchart - npm Package Compare versions

Comparing version 3.2.5 to 3.2.7

CHANGELOG.md

10

catchart.js
#!/usr/bin/env node
const catchart = require('./index')
const StreamSlicer = require('stream-slicer')
const split = require('split')
const { pipeline } = require('stream')
const program = require('./program')
let slicer = new StreamSlicer({ sliceBy: program.rowSeparator })
let chartStream = catchart(program)
const chartStream = catchart(program)
pipeline(process.stdin, slicer, chartStream, err => {
pipeline(process.stdin, split(program.rowSeparator), chartStream, err => {
if (err) {
return console.error(err)
console.error(err)
return
}
})
{
"name": "catchart",
"version": "3.2.5",
"version": "3.2.7",
"description": "Pipe something from command line to a browser chart",

@@ -29,3 +29,3 @@ "license": "MIT",

"server-destroy": "^1.0.1",
"stream-slicer": "0.0.6",
"split": "^1.0.1",
"through2": "^3.0.1",

@@ -32,0 +32,0 @@ "ws": "^7.3.0"

@@ -47,3 +47,2 @@ # catchart

## api

@@ -53,6 +52,7 @@ `catchart` cli in it's simplest form, looks very much like this:

```js
const catchart = require('catchart')
const Slicer = require('stream-slicer')
const { pipeline } = require('stream')
const catchart = require('./index')
const split = require('split')
process.stdin.pipe(new Slicer()).pipe(catchart())
pipeline(process.stdin, split(), catchart(), err => err ? console.error(err) : undefined)
```

@@ -59,0 +59,0 @@

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