UNPKG

generator-nmlib

Version:

Scaffold out a node module using webpack, babel, es6.

11 lines (8 loc) 231 B
'use strict'; module.exports = (input, opts) => { if (typeof input !== 'string') { throw new TypeError(`Expected a string, got ${typeof input}`); } opts = opts || {}; return input + ' & ' + (opts.postfix || 'rainbows'); };