
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
This is a toy project without any outlandish goals. Occasionally I
needed a MongoDB ObjectID for a unit test. This saves a DB query,
starting mongo
locally, writing more than a line of Python, or
visiting a website. I also wanted to learn more about writing &
deploying Python packages.
None
py36+. See GitHub workflow here.
$ pip install random-object-id
$ random_object_id -h
usage: random_object_id [-h] [-l]
Generate a random MongoDB ObjectId
optional arguments:
-h, --help show this help message and exit
-l, --longform prints the ID surrounded by ObjectId("...")
from random_object_id import generate
generate() # => '5ecd3bbf875e60b4166f6699'
$ random_object_id
55348611a56c10449ab80a4f
$ random_object_id -l
ObjectId("553486125ed592a10c4e8e6b")
FAQs
Generate a random MongoDB ObjectId.
We found that random-object-id demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.