stdinfile
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

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

Package Sidebar

Install

npm i stdinfile

Weekly Downloads

0

Version

0.0.1

License

ISC

Unpacked Size

4.96 kB

Total Files

6

Last publish

Collaborators

  • reeganexe