/
opt
/
alt
/
alt-nodejs18
/
root
/
lib
/
node_modules
/
npm
/
node_modules
/
@npmcli
/
name-from-folder
/
lib
/
Upload Filee
HOME
const { basename, dirname } = require('path') const getName = (parent, base) => parent.charAt(0) === '@' ? `${parent}/${base}` : base module.exports = dir => dir ? getName(basename(dirname(dir)), basename(dir)) : false