Hello from Indonesia! A tools to setup data for push-ready.
Install dependency;
> npm install --save payload-organizer
So many tasks that you must do before push fix-data into database, or return fix-data to another task that you wannna do. Simple solution if you use payload-organizer
. Only setup the beta-object that you wanna mutating before push/save or return it as fix-data.
For example if you wanna make the register data payload. You need to;
- Validate the payload.
- Hashing password.
- Sending email.
- Create the token.
- And another conditions that you must set to fix the data object.
You don't have to do all of the above. You only need to setup the temporary form data and let us do the rest.
Please read the docs here payload-organizer.
This project is licensed under the MIT license. See the LICENSE file for more info.