2019-07-02 13:20:58 -07:00
2019-07-02 13:20:58 -07:00
2019-07-02 13:20:58 -07:00
2019-07-02 13:20:58 -07:00
JS
2019-07-02 13:23:38 -07:00
2019-07-02 13:20:58 -07:00
2020-09-06 02:11:00 -07:00

copy-package

Allows you to download and copy files from a npm package from a temporary installation into your current directory.

import { copyPackageToTempDir } from 'copy-package';

try {
  let tmp = copyPackageToTempDir('expo-template-bare-minimum');

  // tmp.name gives you the path, do what you want with it!

  // call this to clean up
  tmp.removeCallback();
} catch(e) {
  // uh oh
}
$ npx copy-package expo-template-bare-minimum
$ cd expo-template-bare-minimum

Attribution

The approach used to do this is copied from the wonderful patch-package.

S
Description
No description provided
Readme
286 KiB
0 Stars 1 Watchers 0 Forks
Languages
JavaScript 65.1%
TypeScript 34.9%