Wondering what’s next for npm?Check out our public roadmap! »

    rename-props

    0.1.0 • Public • Published

    rename-props

    Install:

    npm i rename-props --save
    

    Useage

    test('should rename the object', t => {
      const obj = {
        foo: 'foo',
        bar: 'bar',
      }
      t.deepEqual(rename({ foo: 'name' }, obj), { name: 'foo', bar: 'bar' })
    })
    

    Install

    npm i rename-props

    DownloadsWeekly Downloads

    2

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • avatar