Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 491 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 491 Bytes

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