UNPKG

@akameco/generator-nm

Version:

Scaffold out a node module

11 lines (8 loc) 266 B
// @flow 'use strict' module.exports = (input /*: string */, opts /*: { postfix: ?string } */ = {}) => { if (typeof input !== 'string') { throw new TypeError(`Expected a string, got ${typeof input}`) } return `${input} & ${opts.postfix || 'rainbows'}` }