omap

0.0.1 • Public • Published

OMAP (ObjectMap)

Maps object key to array of possible keys.

npm install omap --save

Example

var omap = require("omap");

var incoming = {
    "Access Token": "12345qwerty"
}

var potential = {
    "token": [
        "access-token",
        "token",
        "token-access",
    ]
}

var outgoing = omap(incoming, potential);

// { token: '12345qwerty' }

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    0
  • 0.0.2
    0

Package Sidebar

Install

npm i omap

Weekly Downloads

0

Version

0.0.1

License

BSD

Last publish

Collaborators

  • reggi