bookshelf-case-converter-plugin

2.0.0 • Public • Published

Bookshelf Case Converter Plugin

Build Status Greenkeeper badge

This is a plugin for the Bookshelf Node.js ORM that handles the conversion between the database's snake_cased and a model's camelCased properties automatically.

How to use

First install the package:

npm install bookshelf-case-converter-plugin

Then load the plugin using bookshelf.plugin('bookshelf-case-converter-plugin'). No further action is required, since the plugin will automatically convert model attributes between snake_case and camelCase.

Limitations

Note that there are some limitations to the way this plugin works. When you access query methods directly, there will be no conversion, meaning that you have to use the actual database column names in this case. The following methods do no work with this plugin yet:

Readme

Keywords

Package Sidebar

Install

npm i bookshelf-case-converter-plugin

Weekly Downloads

167

Version

2.0.0

License

MIT

Unpacked Size

6.67 kB

Total Files

5

Last publish

Collaborators

  • devius