DTYP / Windows Data Type library in TypeScript
npm install dtyp> DTYP / Windows Data Type library in TypeScript.




[[MS-DTYP]: Windows Data Types](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/cca27429-5689-4a16-b2b4-9325d93e4ba2)
sh
$ npm i dtyp
`Usage
`ts
import dtyp from "dtyp";const buffer = dtyp.serializeFiletime(new Date());
console.log(buffer); //
const date = dtyp.parseFiletime(buffer);
console.log(date); // 2020-06-01T14:16:23.787Z
``