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

Readme

Keywords

Package Sidebar

Install

npm i value-for-key

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • robskillington