UNPKG

mlgc

Version:

MLGC is a CLI program that allows you to easily copy all Git changes to a folder for easy uploading or sharing.

10 lines (7 loc) 219 B
const path = require("path"); function generatePath(args, basePath = process.cwd()) { return args.length > 2 && args[2][0] !== "/" ? path.join(basePath, args[2]) : basePath; } module.exports = generatePath;