Comparing version 1.2.7 to 1.2.8
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://github.com/microlinkhq/tinyspawn", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"main": "src/index.js", | ||
@@ -87,3 +87,8 @@ "author": { | ||
"@commitlint/config-conventional" | ||
] | ||
], | ||
"rules": { | ||
"body-max-length": [ | ||
0 | ||
] | ||
} | ||
}, | ||
@@ -90,0 +95,0 @@ "nano-staged": { |
@@ -84,2 +84,14 @@ <div align="center"> | ||
or stdin: | ||
```js | ||
const { Readable } = require('node:stream') | ||
const subprocess = $('cat', { stdin: 'hello world' }) | ||
Readable.from('hello world').pipe(subprocess.stdin) | ||
const {stdout} = await subprocess | ||
console.log(stdout) // 'hello world' | ||
``` | ||
### JSON parsing | ||
@@ -86,0 +98,0 @@ |
11610
186