mirror of
https://github.com/expo/copy-package.git
synced 2026-11-13 20:28:07 -10:00
master
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.1.2 to 4.7.6. - [Release notes](https://github.com/wycats/handlebars.js/releases) - [Changelog](https://github.com/handlebars-lang/handlebars.js/blob/master/release-notes.md) - [Commits](https://github.com/wycats/handlebars.js/compare/v4.1.2...v4.7.6) Signed-off-by: dependabot[bot] <[email protected]>
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.
Languages
JavaScript
65.1%
TypeScript
34.9%