Network Performance Monitor
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

objectid-string-utils

1.0.1 • Public • Published

objectid-string-utils

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

NPM version Build status Dependency Status devDependency Status Coverage Status

Modules

objectid-string-utils
## Functions
parse(id)Object

Parse an hexadecimal object id and return it parts

stringify(parts)String

Build an haxadecimal string from the various parts of an ObjectId

## objectid-string-utils ## parse(id) ⇒ Object Parse an hexadecimal object id and return it parts

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

install

npm i objectid-string-utils

Downloadsweekly downloads

246

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability