Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function createLocalPouch(args) {
if (typeof args[0] === 'string') {
args = [{name: args[0]}];
}
return Promise.resolve({
pouch: new PouchDB(args[0])
});
}