Nearsighted Paramecium Multiverse
    Wondering what’s next for npm?Check out our public roadmap! »

    mongodb-ns

    2.2.0 • Public • Published

    mongodb-ns

    build status

    Handle dem namespaces like the kernel do.

    var ns = require('mongodb-ns');
    
    var bacon = ns('canadian-things.songs-aboot-bacon');
    console.log(bacon.toString() + '\n', bacon);
    

    will output

    canadian-things.songs-aboot-bacon
     NS {
      ns: 'canadian-things.songs-aboot-bacon',
      dotIndex: 15,
      database: 'canadian-things',
      collection: 'songs-aboot-bacon',
      system: false,
      oplog: false,
      command: false,
      special: false,
      specialish: false,
      normal: true,
      validDatabaseName: true,
      validCollectionName: true,
      databaseHash: 23620443216 }
    

    license

    MIT

    Install

    npm i mongodb-ns

    DownloadsWeekly Downloads

    1,078

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    4.79 kB

    Total Files

    4

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar