0.2.1 • Published 5 years ago

npm-install-tmp v0.2.1

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

npm-install-tmp

Temporary installs a npm package and automatically cleans up the resources afterwards.

Installation

npm install npm-install-tmp --save

Usage

import {use} from 'npm-install-tmp';

// Pass the name of the package you want to include (e.g. example or example@latest)
use('example')
    .then(example => {
        // do what ever you want
    });

After the process exited all the resource are cleaned up automatically.

Tests

npm install
npm test

Dependencies

  • @types/node: TypeScript definitions for Node.js
  • npm: a package manager for JavaScript
  • tmp: Temporary file and directory creator

Dev Dependencies

  • rimraf: A deep deletion module for node (like rm -rf)
  • tslint: An extensible static analysis linter for the TypeScript language
  • typescript: TypeScript is a language for application scale JavaScript development

License

MIT

0.2.1

5 years ago

0.2.0

6 years ago

0.1.5

6 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago