value-for-key

1.0.0 • Public • Published

value-for-key

When you want to get and set value for keys on objects without causing JSHint camel case errors.

If you also keep getting errors like this:

  object.someField = json.some_json_key;
  file.js: line 56, col 0, Identifier 'some_json_key' is not in camel case.

Then this module is for you!

Now just:

  object.someField = valueForKey(json, 'some_json_key');

Installation

npm install value-for-key

Tests

npm test

MIT Licensed

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i value-for-key

Weekly Downloads

2

Version

1.0.0

License

MIT

Last publish

Collaborators

  • robskillington