validate-objectid
Validates a MongoDB ObjectID. Takes a string, returns a bool.
Last updated 5 years ago by ashaffer88 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install validate-objectid 
SYNC missed versions from official npm registry.

validate-objectid

Usage

var objectid = require('validate-objectid');

assert(! objectid('test'));
assert(objectid('542f9cabed89afee4aaf2e61'));

Current Tags

  • 0.2.0                                ...           latest (5 years ago)

3 Versions

  • 0.2.0                                ...           5 years ago
  • 0.1.1                                ...           6 years ago
  • 0.1.0                                ...           6 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (0)
None
Dev Dependencies (1)

Copyright 2014 - 2016 © taobao.org |