1.0.1 • Published 6 years ago

objectid-string-utils v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

objectid-string-utils

Helpers to pars/stringify hexadecimal representation of an ObjectId (MongoDB)

NPM version Build status Dependency Status devDependency Status Coverage Status

Modules

Kind: global function
Returns: Object - Hash containing the various parts (timestamp, machine, pid, increment)

ParamTypeDescription
idStringThe 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

ParamTypeDescription
partsObjectThe given parts