Skip to content

Tiny little tool to generate mongo ObjectID in the terminal

License

Notifications You must be signed in to change notification settings

rod-stuchi/oid-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oid-cli

install size

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
# outputs
5ac177bf70d53847e8785eac

with arguments

oid -n5
# outputs
5ac177f250dbba4954955bb9
5ac177f250dbba4954955bba
5ac177f250dbba4954955bbb
5ac177f250dbba4954955bbc
5ac177f250dbba4954955bbd

Usage with VIM + UltiSnips

with single quotes

snippet /[']oid/ "MongoDB ObjectId" r
'`oid`'
endsnippet

whitout quotes

snippet /[.]oid/ "MongoDB ObjectId" r
`oid`
endsnippet

Demo VIM

About

Tiny little tool to generate mongo ObjectID in the terminal

Topics

Resources

License

Stars

Watchers

Forks

Packages