UNPKG

@vladholubiev/generator-nm

Version:

Scaffold out a node module with jest, yarn and wallaby

12 lines (8 loc) 232 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'); };