0.0.1 • Published 1 year ago

stdinfile v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

1stream

🚀 A set of utilities for reading and writing files, as well as reading from stdin. Inspired by Bun.file() and Bun.stdin().

npm install 1stream
import * as stream from 'stdinfile';

const data: Yours = await stream.file('abc.json').json();

const data2: string = await stream.file('abc.json').text();

const stdin: Yours = await stream.stdin().json();
// OR
const stdin2: string = await stream.stdin().text();

await stream.write('output.json', data2);

LICENSE

New BSD License ©Ninh Pham - ReeganExE