https://github.com/bookshelf/processor-plugin
Bookshelf plugin that allows defining custom processor functions that handle transformation of values whenever they are set on a model.
https://github.com/bookshelf/processor-plugin
bookshelf bookshelf-plugin bookshelfjs javascript plugin
Last synced: about 2 months ago
JSON representation
Bookshelf plugin that allows defining custom processor functions that handle transformation of values whenever they are set on a model.
- Host: GitHub
- URL: https://github.com/bookshelf/processor-plugin
- Owner: bookshelf
- License: mit
- Created: 2019-08-04T17:48:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T15:33:58.000Z (almost 5 years ago)
- Last Synced: 2025-04-08T19:31:38.724Z (2 months ago)
- Topics: bookshelf, bookshelf-plugin, bookshelfjs, javascript, plugin
- Language: JavaScript
- Homepage:
- Size: 299 KB
- Stars: 4
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Bookshelf Processor Plugin
[](https://travis-ci.com/bookshelf/processor-plugin) [](https://greenkeeper.io/)
This is a plugin for the [Bookshelf Node.js ORM](https://bookshelfjs.org/) that allows defining custom processor
functions that handle transformation of values whenever they are `.set()` on a model.## How to use
First install the package:
npm install bookshelf-processor-plugin
Then load the plugin using `bookshelf.plugin('bookshelf-processor-plugin')`. Now you are all set to start defining
custom attribute processors on your models.For more information check the online
[wiki page](https://github.com/bookshelf/processor-plugin/wiki/Bookshelf-Processor-Plugin).