typescript-equals
Rough implementation of checking of AST equality: Ignores spaces, comments, quotes, semicolons, parenthesis.
Install
npm i -S typescript-equals
Usage
; const text1 = `var a = {a:1}`;const text2 = `var a = {a:1,}`;const text3 = `var a = {a: 1} // comment`; ; // => true; // => true; // => true
API
equalsfirstText: string, secondText: string: boolean;