UNPKG

better-npm-init

Version:

A better version of npm init, with templates and more. Usage: better-npm-init <template> [--yarn] [--install] [--git] [--yes] [--help]

16 lines (10 loc) 299 B
// @flow /* eslint-disable fp/no-class, fp/no-this */ import ExtendableError from 'es6-error'; export class UnexpectedStateError extends ExtendableError { code: string; constructor (message: string, code: string = 'UNEXPECTED_STATE_ERROR') { super(message); this.code = code; } }