UNPKG

coz-bud

Version:
21 lines (17 loc) 373 B
/** * Create new buds. * @memberof module:coz-bud/lib * @function create * @param {object} config - Bud config. * @returns {Bud} - A new bud instance. */ 'use strict' const Bud = require('./bud') /** @lends create */ function create (config) { if (typeof config === 'string') { config = { src: config } } return new Bud(config) } module.exports = create