You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The mask method can be applied to collections and the same options accepted in toJSON can also be provided.
Contributing
Contributions are welcome and greatly appreciated, so feel free to fork this repository and submit pull requests.
Setting up
Fork and clone the bookshelf-mask repository.
Duplicate test/knexfile.js.dist and and update it to your needs.
Make sure all the tests pass:
$ npm test
Linting
bookshelf-mask enforces linting using ESLint with the Seegno-flavored ESLint config. We recommend you to install an eslint plugin in your editor of choice, although you can run the linter anytime with:
$ eslint src test
Pull Request
Please follow these advices to simplify the pull request workflow:
If you add or enhance functionality, an update of README.md usage section should be part of the PR.
If your PR fixes a bug you should include tests that at least fail before your code changes and pass after.
Keep your branch rebased and fix all conflicts before submitting.