npm-packlist:遍历一个文件夹,找出npm软件包中包含的内容

时间:2024-05-23 09:41:58
【文件属性】:

文件名称:npm-packlist:遍历一个文件夹,找出npm软件包中包含的内容

文件大小:130KB

文件格式:ZIP

更新时间:2024-05-23 09:41:58

JavaScript

npm-包装清单 获取要从文件夹添加到npm包中的文件的列表。 这些都可以交给像这样做的NPM包压缩包: const packlist = require ( 'npm-packlist' ) const tar = require ( 'tar' ) const packageDir = '/path/to/package' const packageTarball = '/path/to/package.tgz' packlist ( { path : packageDir } ) . then ( files => tar . create ( { prefix : 'package/' , cwd : packageDir , file : packageTarball , gzip : true } , files ) ) . t


【文件预览】:
npm-packlist-master
----.travis.yml(78B)
----bin()
--------index.js(652B)
----index.js(15KB)
----package.json(1KB)
----.github()
--------settings.yml(48B)
----test()
--------package-json-main.js(1KB)
--------ignores.js(2KB)
--------bundled.js(2KB)
--------package-json-bin-multiple.js(794B)
--------bundled-files.js(2KB)
--------sorting.js(262B)
--------package-json-negated-files.js(474B)
--------package-json-filed-dir-nested-npmignore.js(471B)
--------strip-slash-from-package-files-list-entries.js(1KB)
--------nested-lock-and-core.js(914B)
--------scoped.js(1KB)
--------package-json-glob-fails.js(724B)
--------package-json-files-nested-dir-and-nested-ignore.js(616B)
--------bundled-scoped-symlink.js(1KB)
--------package-json-cache.js(1KB)
--------package-json-empty.js(1KB)
--------cannot-exclude-package-json.js(409B)
--------package-json-files-dir-and-nested-ignore.js(586B)
--------package-json.js(2KB)
--------bundled-scoped.js(912B)
--------bin.js(1KB)
--------star-names.js(2KB)
--------package-json-read-fail.js(404B)
--------package-not-json.js(983B)
--------package-json-files-and-containing-dir.js(700B)
--------cwd.js(1KB)
--------include-gitignore.js(1KB)
--------cannot-exclude-readme.js(424B)
--------package-json-nested.js(679B)
--------package-json-roots-and-nests.js(1KB)
--------package-json-nested-readme-include-npmignore.js(1020B)
--------empty-npmignore.js(1KB)
--------ignore-file-included-by-globstar.js(535B)
--------package-json-nested-readme.js(982B)
--------cannot-include-package-lock.js(460B)
--------package-json-files-with-slashes.js(780B)
--------symlink.js(2KB)
--------package-json-bin-single.js(716B)
--------bundled-symlink.js(1KB)
--------cannot-exclude-shrinkwrap.js(449B)
--------package-json-files-no-dir-nested-npmignore.js(475B)
--------package-json-files-including-npmignore.js(524B)
----LICENSE(765B)
----package-lock.json(301KB)
----.gitignore(265B)
----README.md(6KB)
----tap-snapshots()
--------test-package-json.js-TAP.test.js(699B)
--------test-bin.js-TAP.test.js(1KB)
--------test-sorting.js-TAP.test.js(480B)
--------test-cwd.js-TAP.test.js(806B)
--------test-cannot-include-package-lock.js-TAP.test.js(633B)
--------test-package-json-files-no-dir-nested-npmignore.js-TAP.test.js(725B)
--------test-bundled-scoped.js-TAP.test.js(765B)
--------test-bundled-files.js-TAP.test.js(1KB)
--------test-bundled-scoped-symlink.js-TAP.test.js(781B)
--------test-scoped.js-TAP.test.js(649B)
--------test-package-json-files-dir-and-nested-ignore.js-TAP.test.js(689B)
--------test-package-json-nested-readme.js-TAP.test.js(943B)
--------test-package-not-json.js-TAP.test.js(657B)
--------test-ignores.js-TAP.test.js(689B)
--------test-package-json-nested.js-TAP.test.js(689B)
--------test-nested-lock-and-core.js-TAP.test.js(745B)
--------test-package-json-bin-single.js-TAP.test.js(635B)
--------test-bundled-symlink.js-TAP.test.js(723B)
--------test-empty-npmignore.js-TAP.test.js(733B)
--------test-package-json-files-and-containing-dir.js-TAP.test.js(715B)
--------test-package-json-negated-files.js-TAP.test.js(617B)
--------test-package-json-bin-multiple.js-TAP.test.js(677B)
--------test-package-json-roots-and-nests.js-TAP.test.js(979B)
--------test-package-json-cache.js-TAP.test.js(864B)
--------test-symlink.js-TAP.test.js(981B)
--------test-package-json-files-nested-dir-and-nested-ignore.js-TAP.test.js(767B)
--------test-cannot-exclude-readme.js-TAP.test.js(641B)
--------test-cannot-exclude-package-json.js-TAP.test.js(623B)
--------test-include-gitignore.js-TAP.test.js(695B)
--------test-cannot-exclude-shrinkwrap.js-TAP.test.js(645B)
--------test-package-json-files-including-npmignore.js-TAP.test.js(741B)
--------test-bundled.js-TAP.test.js(1KB)
--------test-package-json-main.js-TAP.test.js(721B)
--------test-package-json-empty.js-TAP.test.js(595B)
--------test-package-json-filed-dir-nested-npmignore.js-TAP.test.js(687B)
--------test-package-json-files-with-slashes.js-TAP.test.js(703B)
--------test-package-json-nested-readme-include-npmignore.js-TAP.test.js(847B)

网友评论