UNPKG

config-srv

Version:

API and REST interface for editing a structured set of parameters

11 lines (8 loc) 223 B
const REST = require('./REST.js'); let globalInstance; module.exports = (serviceOptions) => { if (globalInstance && globalInstance instanceof REST) { return globalInstance; } return new REST(serviceOptions); };