{"library":"mongodb-ns","type":"library","category":null,"description":"MongoDB namespace parsing and validation library that splits strings like 'db.collection' into components, checks validity, and identifies special namespaces (oplog, system, command). Current version 3.2.0, published under the @mongodb-js scope. Actively maintained as part of MongoDB DevTools Shared. Differentiators: strict validation of database and collection names per MongoDB rules, hash generation, and support for dotted collection names.","language":"javascript","status":"active","version":"3.2.0","tags":["javascript","typescript"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install mongodb-ns","imports":["import A from 'mongodb-ns'","import { NS } from 'mongodb-ns'","import { isMongos } from 'mongodb-ns'","import type { NS } from 'mongodb-ns'"]},{"cmd":"yarn add mongodb-ns","imports":[]},{"cmd":"pnpm add mongodb-ns","imports":[]}],"homepage":"https://github.com/mongodb-js/devtools-shared","github":"https://github.com/mongodb-js/devtools-shared","docs":null,"changelog":null,"pypi":null,"npm":"mongodb-ns","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}