File "index.js"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/lib/node_modules/npm/node_modules/@npmcli/name-from-folder/lib/index.js
File size: 225 bytes
MIME-type: text/plain
Charset: utf-8

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