<PCName>
provides a clean way to .
-
If you want to use this library, you first need to install the Node.js.
-
When you install node.js, will also be installed npm.
-
Please run the following command.
npm install --save @panda-clouds/<panda-blank>
const <PCName> = require('@panda-clouds/<panda-blank>');
// example usage
You can replace with any variable.
Unit Tests are an additional resource for learning functionality.
requires the property to be set, else throws error
Example:
Parse.Cloud.beforeSave('Book', request =>{
const data = new <PCName>(request);
data.prop('title').mustExist(); // will throw Error if request.object.get('title') doesn't exist
});
Pull requests are welcome! here is a checklist to speed things up:
- modify
<PCName>.js
- add unit tests in
<PCName>.spec.js
- run
npm test
- document method in
README.md
- add your name to 'Contributors' in
README.md
(Add your name)
- [*] Marc Smith