Mr.Combet Webshell
Your IP :
216.73.216.136
Server IP :
103.233.58.157
Server :
Windows NT WIN-4PGF72KEHKB 10.0 build 17763 (Windows Server 2016) AMD64
Server Software :
Microsoft-IIS/10.0
PHP Version :
7.3.25
Add File :
Submit
Add Directory :
Submit
Dir :
C:
/
Program Files
/
nodejs
/
node_modules
/
npm
/
lib
/
exec
/
View File Name :
get-workspace-location-msg.js
const chalk = require('chalk') const readPackageJson = require('read-package-json-fast') const nocolor = { dim: s => s, green: s => s, } const getLocationMsg = async ({ color, path }) => { const colorize = color ? chalk : nocolor const { _id } = await readPackageJson(`${path}/package.json`) .catch(() => ({})) const workspaceMsg = _id ? ` in workspace ${colorize.green(_id)}` : ` in a ${colorize.green('new')} workspace` const locationMsg = ` at location:\n${ colorize.dim(path) }` return `${workspaceMsg}${locationMsg}` } module.exports = getLocationMsg