Comparing version 3.2.5 to 3.2.7
#!/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 @@ |
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
568072
17
+ Addedsplit@^1.0.1
+ Addedsplit@1.0.1(transitive)
+ Addedthrough@2.3.8(transitive)
- Removedstream-slicer@0.0.6
- Removedstream-slicer@0.0.6(transitive)