Skip to content

CLI for converting between C# base64 encoded GUIDs in MongoDB

License

Notifications You must be signed in to change notification settings

Dualog-students/csuuid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSUUID

What this package does:

  • Converts a base64 encoded C# GUID in MongoDB to a string GUID.
  • Converts a string GUID to a base64 encoded C# GUID

Installation

Clone this repo and run:

$ npm install -g .

Usage

Convert string GUID to base64:

csuuid -u "ff3b9053-b735-4562-812c-a2ba66dfc4ec"
U5A7/zW3YkWBLKK6Zt/E7A==   

Convert base64 to GUID string:

csuuid -b "U5A7/zW3YkWBLKK6Zt/E7A=="
ff3b9053-b735-4562-812c-a2ba66dfc4ec