UNPKG

google-datastore-emulator

Version:

NodeJs wrapper to google datastore emulator. It could start and stop emulator as node module

12 lines (10 loc) 334 B
/** * Calculate the consistency command line argument. * Depend from the engine how to set data directory for the emulator * @param options * @returns {(string|string)[]|*[]} */ function getConsistencyArg(options) { return options.consistency ? ['--consistency', options.consistency] : [] } module.exports = getConsistencyArg