npm-install-tmp
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.1
    0
    • latest

Version History

Package Sidebar

Install

npm i npm-install-tmp

Weekly Downloads

0

Version

0.2.1

License

MIT

Unpacked Size

10.6 kB

Total Files

4

Last publish

Collaborators

  • joge