Updated README.md #3

This commit is contained in:
sanex3339
2020-06-07 18:11:01 +03:00
parent f6c3d7e074
commit 5811d649cd
2 changed files with 32 additions and 26 deletions
+11 -9
View File
@@ -7,15 +7,17 @@ import { NO_ADDITIONAL_NODES_PRESET } from '../../src/options/presets/NoCustomNo
let obfuscatedCode: string = JavaScriptObfuscator.obfuscate(
`
const foo = {
prop1: 1,
prop2: 2,
calc: function () {
return this.prop1 + this.prop2;
}
};
console.log(foo.calc());
(function () {
const foo = {
prop1: 1,
prop2: 2,
calc: function () {
return this.prop1 + this.prop2;
}
};
console.log(foo.calc());
})();
`,
{
...NO_ADDITIONAL_NODES_PRESET,