UNPKG
easyify-cli
Version:
latest (1.0.9)
1.0.9
1.0.8
1.0.6
1.0.5
1.0.4
A simple CLI for scaffolding easyify projects.
github.com/webkong/easyify-cli
webkong/easyify-cli
easyify-cli
/
lib
/
local-path.js
14 lines
(11 loc)
•
303 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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)) } }