New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@aux4/input

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aux4/input

CLI Input Parser

latest
Source
npmnpm
Version
0.0.5
Version published
Weekly downloads
9
12.5%
Maintainers
0
Weekly downloads
 
Created
Source

input

Read STDIN input

Install

npm install @aux4/input

Usage

Read stdin as String

const Input = require('@aux4/input');

const string = await Input.readAsString();

Read stdin as JSON

const Input = require('@aux4/input');

const json = await Input.readAsJson();

...

const nested = await Input.readAsJson("$.nested");

Stream stdin as JSON

const Input = require('@aux4/input');

const stream = Input.stream();
stream.on('data', (data) => {
  // data is a JSON object
});

...

const stream = Input.stream("$.nested");
stream.on('data', (data) => {
  // data is a JSON object
});

Keywords

aux4

FAQs

Package last updated on 02 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts