Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/shysolocup/pice
- Owner: shysolocup
- License: mit
- Created: 2024-01-18T16:48:12.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-19T14:51:22.000Z (about 1 year ago)
- Last Synced: 2024-11-01T07:06:29.587Z (3 months ago)
- Topics: javascript, js, node-js, nodejs, nodejs-modules, npm, npm-package, package-installation, package-installer, package-manager, pice
- Language: JavaScript
- Homepage: https://npmjs.com/package/pice
- Size: 114 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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]
```