Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
index.js24 linesDownload Raw Back to lib
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
8const tarball = (spec, opts) => get(spec, opts).tarball()
9tarball.stream = (spec, handler, opts) => get(spec, opts).tarballStream(handler)
10tarball.file = (spec, dest, opts) => get(spec, opts).tarballFile(dest)
11
12module.exports = {
13  GitFetcher,
14  RegistryFetcher,
15  FileFetcher,
16  DirFetcher,
17  RemoteFetcher,
18  resolve: (spec, opts) => get(spec, opts).resolve(),
19  extract: (spec, dest, opts) => get(spec, opts).extract(dest),
20  manifest: (spec, opts) => get(spec, opts).manifest(),
21  packument: (spec, opts) => get(spec, opts).packument(),
22  tarball,
23}
24 
codekingpro/portable-devtools · Team Ai