npm.io
0.1.1 • Published 7 years agoCLI

copy-package

Licence
Version
0.1.1
Deps
7
Size
30 kB
Vulns
2
Weekly
0

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';

(async () => {
  try {
    let path = await copyPackageToTempDir('expo-template-bare-minimum');
  } catch(e) {
    // uh oh
  }
})();
$ copy-package expo-template-bare-minimum .