Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shysolocup/pice

npm package that lets you run console commands and install other packages directly from your code
https://github.com/shysolocup/pice

javascript js node-js nodejs nodejs-modules npm npm-package package-installation package-installer package-manager pice

Last synced: about 2 months ago
JSON representation

npm package that lets you run console commands and install other packages directly from your code

Awesome Lists containing this project

README

        

# pice
npm package that lets you run console commands and install other packages directly from your code

- open source
- easy to use
- sync and async support


```console
npm install pice
```
```console
npm install paishee/pice
```


JSOutput


```js
const pice = require('pice');

// normal install may cause code to hang
let cmd = pice.install("@stews/soup", { version: "1.1.22", dev: true });

// you can use then to get the installed package automatically
cmd.then( (Soup) => {
console.log(Soup);
});

console.log(cmd)
```

```js
PiceCommand {
str: 'npm install @stews/[email protected] --save-dev',
pkg: '@stews/soup',
argsList: [Object],
args: [Object],
async: false,
__listeners: [Object],
__executor: [Buffer]
}

[class Soup]
```