Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard committed Jan 1, 2024
1 parent 0a1d290 commit 564687c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/demo.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import { obfuscate } from '../src';
import { EncryptionCharacterRange } from '../src';
import express from 'express';
import {Noscrape} from "../src/noscrape";
import {Noscrape} from "../src";

const app = express()

app.get('/', (req, res) => {
const noscrape = new Noscrape(__dirname + "/example.ttf");

const test3 = noscrape.obfuscate({ data: "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!\"§$%&/()=¹²³¼½¬{[]},.-;:_·…–<>|"});
const test1= noscrape.obfuscate("test1");
const test2= noscrape.obfuscate(123456789);
const test3 = noscrape.obfuscate({ data: "aniceobject" });
const test4 = noscrape.obfuscate( "abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!\"§$%&/()=¹²³¼½¬{[]},.-;:_·…–<>|");

// language=HTML
res.send(`
Expand All @@ -28,6 +27,7 @@ app.get('/', (req, res) => {
<p>${test1}</p>
<p>${test2}</p>
<p>${test3.data}</p>
<p>${test4}</p>
</body>
</html>
`)
Expand Down

0 comments on commit 564687c

Please sign in to comment.