Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruanyl/rename-props
https://github.com/ruanyl/rename-props
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruanyl/rename-props
- Owner: ruanyl
- Created: 2017-03-01T08:26:28.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-01T08:42:13.000Z (almost 8 years ago)
- Last Synced: 2024-12-05T15:49:26.908Z (about 1 month ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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' })
})
```