
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
parse-wrapper
Advanced tools
A wrapper for Parse to simplying codes for data retrieving and modifying from Parse.
This is a wrapper for Parse to simplifying codes for data retrieving and modifying from Parse.
Please be aware that this plugin is only meant to implement a minimal subset of features of Parse, that are sufficient to implement a simple application with Parse backend. Basically, only data retrieving and updating are supported. If you need more features of Parse, please use the official SDK instead.
Parse server is now supported.
To load the plugin:
var parse = require('parse-wrapper');
To initialize Parse with your own keys:
var keys = {
appKey: 'fakeAppKey',
jsKey: 'fakeJSKey',
username: 'username',
password: 'password'
};
parse.initialize(keys); // return a promise
To login:
parse.login({username: 'username', password: 'password'})
.then(token => {
parse.getAll('Test', token)
.then(console.log);
});
This function returns a promise with the session token.
To get all objects belonging to class Test:
parse.getAll('Test', token)
.then(console.log)
.catch(console.error);
The token parameter is optional.
To get all the objects matching some conditions (e.g. has attribute testing equal to true) in class Test:
parse.getSome('Test', {testing: true})
.then(console.log)
.catch(console.error);
The objects will be returned as an array.
This is similar to .getSome(), but only the first match will be returned.
parse.getOne('Test', {testing: true}, token)
.then(console.log)
.catch(console.error);
To get the object with id of 1234 from class Test:
parse.getOneByID('Test', '1234', token)
.then(console.log)
.catch(console.error);
To delete the object with id of 1234 from class Test:
parse.deleteOneByID('Test', '1234', token)
.then(() => {
console.log('success!');
})
.catch(console.error);
To replace the object with id of 1234 from class Test with object newObject:
parse.updateOneByID('Test', '1234', newObject, token)
.then(() => {
console.log('success!');
})
.catch(console.error);
This is similar to .getSome(), but only the number of match(es) found will be returned.
parse.countSome('Test', {testing: true}, token)
.then((count) => {
console.log('count:', count);
})
.catch(console.error);
parse.countAll('Test', token)
.then((count) => {
console.log('count:', count);
})
.catch(console.error);
To save a new object obj into class 'Test':
parse.save('Test', obj, token)
.then(() => {
console.log('successfully deleted!');
})
.catch(console.error);
FAQs
A wrapper for Parse to simplying codes for data retrieving and modifying from Parse.
We found that parse-wrapper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.