UNPKG

visop

Version:

A simple CLI for scaffolding visible operation projects.

14 lines (11 loc) 316 B
const path = require('path') module.exports = { isLocalPath (templatePath) { return /^[./]|(^[a-zA-Z]:)/.test(templatePath) }, getTemplatePath (templatePath) { return path.isAbsolute(templatePath) ? templatePath : path.normalize(path.join(process.cwd(), templatePath)) } }