source: trip-planner-front/node_modules/pacote/lib/index.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 826 bytes
Line 
1const { get } = require('./fetcher.js')
2const GitFetcher = require('./git.js')
3const RegistryFetcher = require('./registry.js')
4const FileFetcher = require('./file.js')
5const DirFetcher = require('./dir.js')
6const RemoteFetcher = require('./remote.js')
7
8module.exports = {
9 GitFetcher,
10 RegistryFetcher,
11 FileFetcher,
12 DirFetcher,
13 RemoteFetcher,
14 resolve: (spec, opts) => get(spec, opts).resolve(),
15 extract: (spec, dest, opts) => get(spec, opts).extract(dest),
16 manifest: (spec, opts) => get(spec, opts).manifest(),
17 tarball: (spec, opts) => get(spec, opts).tarball(),
18 packument: (spec, opts) => get(spec, opts).packument(),
19}
20module.exports.tarball.stream = (spec, handler, opts) =>
21 get(spec, opts).tarballStream(handler)
22module.exports.tarball.file = (spec, dest, opts) =>
23 get(spec, opts).tarballFile(dest)
Note: See TracBrowser for help on using the repository browser.