objectid-string-utils
v1.0.1
Published
ObjectId haxadecimal representation utils
Downloads
17
Maintainers
Readme
objectid-string-utils
Helpers to pars/stringify hexadecimal representation of an ObjectId (MongoDB)
Modules
Kind: global function
Returns: Object - Hash containing the various parts (timestamp, machine, pid, increment)
| Param | Type | Description | | --- | --- | --- | | id | String | The ObjectId to parse |
stringify(parts) ⇒ String
Build an haxadecimal string from the various parts of an ObjectId
Kind: global function
Returns: String - The ObjectId string representation
| Param | Type | Description | | --- | --- | --- | | parts | Object | The given parts |