Skip to content

Latest commit

 

History

89 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

npm install pice
npm install paishee/pice

JSOutput
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)
PiceCommand {
  str: 'npm install @stews/soup@1.1.22 --save-dev',
  pkg: '@stews/soup',
  argsList: [Object],
  args: [Object],
  async: false,
  __listeners: [Object],
  __executor: [Buffer]
}


[class Soup]

About

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

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Contributors

Languages