1.0.2 • Published 2 years ago

sioninver v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

sioninver

Inverses objects: turns keys into values ​​and values ​​and keys

Getting started

$ npm install sioninver

Inversion example:

const sioninver = require('sioninver')

const result = sioninver({
  '201': 'Created',
  '404': 'Not Found',
  '500': 'Server Error'
})

console.log(result)
/*
{
  'Created': '201',
  'Not Found': '404',
  'Server Error': '500'
}
*/
1.0.2

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

3 years ago