Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/okunishinishi/node-install-if-needed
Run npm install only if needed
https://github.com/okunishinishi/node-install-if-needed
Last synced: 2 months ago
JSON representation
Run npm install only if needed
- Host: GitHub
- URL: https://github.com/okunishinishi/node-install-if-needed
- Owner: okunishinishi
- License: mit
- Created: 2019-03-21T08:27:06.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2022-04-10T05:23:14.000Z (almost 3 years ago)
- Last Synced: 2024-11-11T20:48:26.282Z (3 months ago)
- Language: JavaScript
- Size: 60.5 KB
- Stars: 0
- Watchers: 2
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# install-if-needed
[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url][bd_travis_url]: http://travis-ci.org/okunishinishi/node-install-if-needed
[bd_travis_shield_url]: http://img.shields.io/travis/okunishinishi/node-install-if-needed.svg?style=flat
[bd_npm_url]: http://www.npmjs.org/package/install-if-needed
[bd_npm_shield_url]: http://img.shields.io/npm/v/install-if-needed.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svgRun npm install only if needed
## Install
```bash
npm i npm-install-if-needed
```## Usage
```bash
cd __your_package_dir__
npx npm-install-if-needed # Run npm install only if needed```
## Programmatic API
```node
const installIfNeeded = require('npm-install-if-needed')installIfNeeded()
```