Skip to content

jpstone/bookshelf-camelcase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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']);

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •