REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.07 KB
Close
//opt/alt/alt-nodejs14/root/lib/node_modules/npm/scripts/docs-build.js
Text
Base64
#!/opt/alt/alt-nodejs14/root/usr/bin/node var fs = require('fs') var marked = require('marked-man') var npm = require('../lib/npm.js') var args = process.argv.slice(2) var src = args[0] var dest = args[1] || src fs.readFile(src, 'utf8', function (err, data) { if (err) return console.log(err) function frontmatter (match, p1) { const fm = { } p1.split(/\r?\n/).forEach((kv) => { let result = kv.match(/^([^\s:]+):\s*(.*)/) if (result) { fm[result[1]] = result[2] } }) return `# ${fm['title']}(${fm['section']}) - ${fm['description']}` } function replacer (match, p1) { return 'npm help ' + p1.replace(/npm /, '') } var result = data.replace(/@VERSION@/g, npm.version) .replace(/^---\n([\s\S]+\n)---/, frontmatter) .replace(/\[([^\]]+)\]\(\/commands\/([^)]+)\)/g, replacer) .replace(/\[([^\]]+)\]\(\/configuring-npm\/([^)]+)\)/g, replacer) .replace(/\[([^\]]+)\]\(\/using-npm\/([^)]+)\)/g, replacer) .trim() fs.writeFile(dest, marked(result), 'utf8', function (err) { if (err) return console.log(err) }) })
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
changelog.js
3.00 KB
lrw-r--r--
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
clean-old.sh
4.17 KB
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dep-update
294 B
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dev-dep-update
292 B
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
docs-build.js
1.07 KB
lrw-r--r--
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gen-changelog
420 B
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gen-dev-ignores.js
350 B
lrw-r--r--
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
install.sh
5.47 KB
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
maketest
1.82 KB
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
pr
3.96 KB
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
publish-tag.js
151 B
lrw-r--r--
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
release.sh
889 B
lrw-r--r--
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
relocate.sh
673 B
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update-authors.sh
197 B
lrwxr-xr-x
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update-dist-tags.js
3.46 KB
lrw-r--r--
2026-02-22 20:40:27
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).