DTYP / Windows Data Type library in TypeScript.
$ npm i dtyp
import dtyp from "dtyp";
const buffer = dtyp.serializeFiletime(new Date());
console.log(buffer); // <Buffer b0 ab ee 3a 1f 38 d6 01>
const date = dtyp.parseFiletime(buffer);
console.log(date); // 2020-06-01T14:16:23.787Z
- filetime parse / serialize