noinfopath-bson-timestamp

2.1.0 • Public • Published

NoInfoPath BSON Timestamp

NPM

NPM

This module provide two useful functions for converting a BSON Timestamp object to a Unix Epoc timestamp, and back again.

Install

    npm install noinfopath-bson-timestamp --save

Usage

    var unixTimestamp = NoBSONTimestamp.toNumber(timestamp),
        bsonTimestamp = NoBSONTimestamp.fromNumber(tsn);

Dependecies

This module requires the following dependencies:

    npm install mongodb --save

Readme

Keywords

none

Package Sidebar

Install

npm i noinfopath-bson-timestamp

Weekly Downloads

0

Version

2.1.0

License

MIT

Unpacked Size

4.33 kB

Total Files

5

Last publish

Collaborators

  • noinfopath