$28 GRAYBYTE WORDPRESS FILE MANAGER $70

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/scripts/

HOME
Current File : /opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/scripts//index-build.js
#!/opt/alt/alt-nodejs6/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')
}

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 8.02 AM
root / root
0755
changelog.js
2.886 KB
28 Sep 2021 4.36 PM
root / root
0644
clean-old.sh
4.158 KB
28 Sep 2021 4.36 PM
root / root
0755
dep-update
0.146 KB
28 Sep 2021 4.36 PM
root / root
0755
dev-dep-update
0.14 KB
28 Sep 2021 4.36 PM
root / root
0755
doc-build.sh
3.18 KB
28 Sep 2021 4.36 PM
root / root
0755
gen-changelog
0.41 KB
28 Sep 2021 4.36 PM
root / root
0755
index-build.js
1.677 KB
28 Sep 2021 4.36 PM
root / root
0755
install.sh
6.093 KB
28 Sep 2021 4.36 PM
root / root
0755
maketest
2.023 KB
28 Sep 2021 4.36 PM
root / root
0755
publish-tag.js
0.147 KB
28 Sep 2021 4.36 PM
root / root
0644
release.sh
0.642 KB
28 Sep 2021 4.36 PM
root / root
0644
relocate.sh
0.649 KB
28 Sep 2021 4.36 PM
root / root
0755
update-authors.sh
0.179 KB
28 Sep 2021 4.36 PM
root / root
0755

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF