bookshelf-camelcase

Convert column names to camelCase for gets and back to snake_case for sets

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
bookshelf-camelcase
2.0.15 years ago7 years agoMinified + gzip package size for bookshelf-camelcase in KB

Readme

Description
Simple bookshelf plugin that converts gets to camelCase and sets to snakecase.
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']);