UNPKG
@zce/create-nm
Version:
latest (1.0.0-alpha.2)
1.0.0-alpha.2
1.0.0-alpha.1
1.0.0-alpha.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.1
0.1.0
A scaffolding tools for creating node modules.
github.com/zce/create-nm
zce/create-nm
@zce/create-nm
/
template
/
lib
/
index.js
11 lines
(8 loc)
•
277 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
//
TODO:
Implement module
module
.
exports
=
(
name, options
) =>
{
if
(
typeof
name !==
'string'
) {
throw
new
TypeError
(
`Expected a string, got <%= '
${
typeof
name}
' %>`
) } options =
Object
.
assign
({}, options)
return
`<%= '
${name}
@
${options.host || \
'zce.me\'}'
%>
` }