Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongodb-reduce-objectid

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-reduce-objectid - npm Package Compare versions

Comparing version 2.1.0 to 2.1.1

2

package.json
{
"name": "mongodb-reduce-objectid",
"version": "2.1.0",
"version": "2.1.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,2 +7,16 @@ # Shorten MongoDb ObjectId

Suit for `node` and `browser`.
Suit for `node` and `browser`.
# Install
```console
npm install --save mongodb-reduce-objectid
```
# Usage
```js
const shortenId = require('mongodb-reduce-objectid');
const id = shortenId('5d0efa88f85b2f001172f6ba');
console.log(id); // => 'ahGw2K'
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc