bookshelf-camelcase-bee
v2.0.4
Published
Convert column names to camelCase for gets and back to snake_case for sets
Downloads
1
Readme
Description
Simple bookshelf plugin that converts gets to camelCase and sets to snake_case.
Installation
npm install --save bookshelf-camelcase
Usage
In your bookshelf configuration file, add the plugin:
bookshelf.plugin('bookshelf-camelcase');
Or if you have multiple plugins:
bookshelf.plugin(['other-plugin', 'bookshelf-camelcase']);