1.2.3 • Published 6 years ago

recuint v1.2.3

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

♻ RECUINT

Now you can install your dependencies on package.json recursively, without run npm install or yarn manualy on every folder on your project.

Documentation

This library only 1KB with one dependency (shelljs), with two option to be use. You can use this library using promise or without any callback.

OptionDescriptionDefault
rootRoot of directory to install dependenciescurrent directory
managerManager to be use like npm or yarnyarn

Usage

First, install recuint using yarn or npm.

$ npm i recuint

# or

$ yarn add recuint

Next, create configuration file and run it as usual using Node.

/**
 * Recuint have two option to be use,
 * first using promise and second without
 * callback or promise.
 * 
 * You can use as you want.
 */
const { recuint, recuintSync } = require('./')

/**
 * Install any dependencies on
 * current directory.
 */
recuintSync()

/**
 * Install any dependencies only
 * on example directory.
 */
recuintSync({
  root: './example'
})

/**
 * Install any dependencies only
 * on app-1 folder inside example
 * directory with npm.
 * 
 * And recuint will be return as
 * promise.
 */
recuint({
  root: './example/app-1',
  manager: 'npm'
})
.then(() => {
  console.log('done')
})

For more info see Example File

License

This project under MIT License