REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.68 KB
Close
/proc/self/root/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/scripts/index-build.js
Text
Base64
#!/opt/alt/alt-nodejs9/root/usr/bin/node var fs = require('fs') var path = require('path') var root = path.resolve(__dirname, '..') var glob = require('glob') var conversion = { 'cli': 1, 'api': 3, 'files': 5, 'misc': 7 } glob(root + '/{README.md,doc/*/*.md}', function (er, files) { if (er) throw er output(files.map(function (f) { var b = path.basename(f) if (b === 'README.md') return [0, b] if (b === 'index.md') return null var s = conversion[path.basename(path.dirname(f))] return [s, f] }).filter(function (f) { return f }).sort(function (a, b) { return (a[0] === b[0]) ? (path.basename(a[1]) === 'npm.md' ? -1 : path.basename(b[1]) === 'npm.md' ? 1 : a[1] > b[1] ? 1 : -1) : a[0] - b[0] })) }) function output (files) { console.log( 'npm-index(7) -- Index of all npm documentation\n' + '==============================================\n') writeLines(files, 0) writeLines(files, 1, 'Command Line Documentation', 'Using npm on the command line') writeLines(files, 3, 'API Documentation', 'Using npm in your Node programs') writeLines(files, 5, 'Files', 'File system structures npm uses') writeLines(files, 7, 'Misc', 'Various other bits and bobs') } function writeLines (files, sxn, heading, desc) { if (heading) { console.log('## %s\n\n%s\n', heading, desc) } files.filter(function (f) { return f[0] === sxn }).forEach(writeLine) } function writeLine (sd) { var sxn = sd[0] || 1 var doc = sd[1] var d = path.basename(doc, '.md') var content = fs.readFileSync(doc, 'utf8').split('\n')[0].split('-- ')[1] console.log('### %s(%d)\n', d, sxn) console.log(content + '\n') }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 13
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
changelog.js
2.89 KB
lrw-r--r--
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
clean-old.sh
4.16 KB
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dep-update
167 B
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dev-dep-update
161 B
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
doc-build.sh
1.96 KB
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
gen-changelog
420 B
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index-build.js
1.68 KB
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
install.sh
5.32 KB
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
maketest
2.02 KB
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
publish-tag.js
151 B
lrw-r--r--
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
release.sh
681 B
lrw-r--r--
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
relocate.sh
665 B
lrwxr-xr-x
2021-09-28 11:28:52
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
update-authors.sh
183 B
lrwxr-xr-x
2021-09-28 11:28:52
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).