UNPKG

axolemma

Version:

A tool to procedurally generate areas compatible with the Ranvier MUD engine.

19 lines (14 loc) 327 B
module.exports = { capitalize, resolveTrue, noop } function capitalize (string) { if (typeof string !== 'string' || !string.trim().length) return '' const [first, ...rest] = string return first.toUpperCase().concat(rest.join('')) } function resolveTrue () { return Promise.resolve(true) } function noop () {}