is-object-id

    1.0.1 • Public • Published

    is-object-id

    Check if a string is formatted as a valid mongo object id

    #Example

      var isObjectID = require('is-object-id');
      isObjectID('1123456789abcdef11111111'); // true
      isObjectID('1'); // false
      isObjectID(['this is an array']); // false

    That's it really.

    Install

    npm i is-object-id

    DownloadsWeekly Downloads

    6

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • coballast