Arrange Keys
![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)
Returns a copy of a JavaScript object with the keys arranged in a specified order. Useful for formatting JSON files.
Install
- Install:
npm install --save arrangekeys
- Module:
require('arrangekeys')
- Install:
npm install --save arrangekeys
- Module:
require('arrangekeys')
- CDN URL:
//wzrd.in/bundle/arrangekeys@1.2.0
- Install:
ender add arrangekeys
- Module:
require('arrangekeys')
This package is published with the following editions:
arrangekeys
aliases arrangekeys/index.js
which uses Editions to automatically select the correct edition for the consumers environmentarrangekeys/source/index.js
is Source + ESNext + Requirearrangekeys/es2015/index.js
is Babel Compiled + ES2015 + Require
Older environments may need Babel's Polyfill or something similar.
Usage
console.log(
require('arrangekeys')({
z: 1,
a: 2,
b: 3,
c: 4
}, 'b c')
)
console.log(
require('arrangekeys')({
z: 1,
a: 2,
b: 3,
c: 4
}, 'b c', true)
)
console.log(
require('arrangekeys')({
z: 1,
a: 2,
b: 3,
c: 4
})
)
History
Discover the release history by heading on over to the HISTORY.md
file.
Contribute
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
Backers
Maintainers
These amazing people are maintaining this project:
No sponsors yet! Will you be the first?
![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)
Contributors
These amazing people have contributed code to this project:
Discover how you can contribute by heading on over to the CONTRIBUTING.md
file.
License
Unless stated otherwise all works are:
and licensed under: