A Network Distributed Lock Mechanism for Parse
$ echo @PopSugar:registry=https://npm.pkg.github.com/ >> .npmrc
$ npm install @PopSugar/parsemutex --save
const ParseMutex = require('@PopSugar/parsemutex').default;
const mutex = new ParseMutex(databaseURI, 'sparkle');
module.exports = mutex;
const mutex = require('FILE YOU CREATED');
mutex.lock('name of lock', () => {
// do anything.
});