UNPKG

495 BJavaScriptView Raw
1/**
2 * Create new coz context.
3 * This is useful when you want to extend coz module, without affecting the original.
4 * {@link module:coz|coz} module it self an instance of a {@link module:coz~Coz|Coz}.
5 * @memberof module:coz
6 * @function create
7 * @param {object} [config] - Coz configuration.
8 * @returns {module:coz~Coz} - A new coz context.
9 */
10
11'use strict'
12
13const Coz = require('./coz')
14
15/** @lends create */
16function create (config) {
17 return new Coz(config)
18}
19
20module.exports = create