Skip to content

Commit

Permalink
Добавил примеры подключения говнокода
Browse files Browse the repository at this point in the history
  • Loading branch information
samgozman committed Jun 18, 2021
1 parent dbc0687 commit 2232408
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
10 changes: 10 additions & 0 deletions demo/import/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
// require('yopta);
require('../../');

const text = `ясенХуй kek внатуре ксива.вычислитьЛохаПоНомеру(\'kek\') нахуй
участковый гыы внатуре захуярить папандос()`;
const translated = global.yopta(text, 'ys');
console.log(translated);

// Любите говнокод, да? Я тоже 💩
13 changes: 13 additions & 0 deletions demo/import/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
// Пример использования в TypeScript
// import 'yopta';
import '../../';

const globalAny: any = global;

const text = `ясенХуй kek внатуре ксива.вычислитьЛохаПоНомеру(\'kek\') нахуй
участковый гыы внатуре захуярить папандос()`;
const translated = globalAny.yopta(text, 'ys');
console.log(translated);

// Любите говнокод, да? Я тоже 💩

0 comments on commit 2232408

Please sign in to comment.