oid-cli
A tiny little tool only 33K install size, that allow you generate mongo ObjectId direct in you terminal.
Installation
yarn global add oid-cli
usage
oid# outputs5ac177bf70d53847e8785eac
with arguments
oid -n5# outputs5ac177f250dbba4954955bb95ac177f250dbba4954955bba5ac177f250dbba4954955bbb5ac177f250dbba4954955bbc5ac177f250dbba4954955bbd
Usage with VIM + UltiSnips
with single quotes
snippet /[']oid/ "MongoDB ObjectId" r'`oid`'endsnippet
whitout quotes
snippet /[.]oid/ "MongoDB ObjectId" r`oid`endsnippet