[ol7_software_collections] nodejs010-nodejs-sorted-object-1.0.0-3.el7.noarch

Name:nodejs010-nodejs-sorted-object
Version:1.0.0
Release:3.el7
Architecture:noarch
Group:Development/Languages/Other
Size:2615
License:WTFPL
RPM: nodejs010-nodejs-sorted-object-1.0.0-3.el7.noarch.rpm
Source RPM: nodejs010-nodejs-sorted-object-1.0.0-3.el7.src.rpm
Build Date:Tue May 24 2016
Build Host:x86-ol7-builder-02.us.oracle.com
Vendor:Oracle America
URL:https://github.com/domenic/sorted-object
Summary:Returns a copy of an object with its keys sorted
Description:
Although objects in JavaScript are theoretically unsorted, in practice most engines use insertion order—at least, ignoring numeric keys. This manifests itself most prominently when dealing with an object's JSON serialization.

So, for example, you might be trying to serialize some object to a JSON file. But every time you write it, it ends up being output in a different order, depending on how you created it in the first place! This makes for some ugly diffs.

sorted-object gives you the answer. Just use this package to create a version of your object with its keys sorted before serializing, and you'll get a consistent order every time.

Changelog (Show File list) (Show related packages)