Map Pointer
Map from one object to another using JSON pointers.
Installation
npm install map-pointer --save
Usage
Arguments
schema
(object, string or array) The schema to map ontoinput
(any) The input object to select from
Example
const schema = sub: '/id' name: '/full_name' const input = id: 123 full_name: 'Blake Embrey' //=> { sub: 123, name: 'Blake Embrey' }
License
Apache 2.0