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

blastoise-shell

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blastoise-shell

Async shell-like child process pipelines for NodeJS

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Blastoise Shell

Blastoise Shell is an easy way to setup child process pipelines, execute them, and easily interact with their standard streams. A lot like Bash, but using Node.

Installation:

$ npm install --save blastoise-shell

Quick example:

let { cat, echo, rm, vim } = require('blastoise-shell');

async function main() {
    let fileName = 'hello.txt';

    await echo(`Hello, world!`)
        .map(x => x.replace('Hello', 'Hi'))
        .sed('s/world/folks/')
        .writeTo(fileName);

    await vim(fileName);

    await echo(`File contents after editing:`);
    await cat(fileName);

    await rm(fileName);
}

main().catch(console.error);

For a more complete example, check out example.js.

For the complete API reference, check out the documentation.

License

Blastoise Shell is free software: you can redistribute it and/or modify it under the terms of the MIT license.

Exclusion of warranty

Blastoise Shell is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the COPYING for more details.

FAQs

Package last updated on 10 Dec 2017

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