UNPKG

@zce/create-nm

Version:

A scaffolding tools for creating node modules.

15 lines (11 loc) 347 B
export interface Options { host?: string } // TODO: Implement module export default (name: string, options?: Options): string => { if (typeof name !== 'string') { throw new TypeError(`Expected a string, got <%= '${typeof name}' %>`) } options = Object.assign({}, options) return `<%= '${name}@${options.host ?? \'zce.me\'}' %>` }