-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Добавил примеры подключения говнокода
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
// Любите говнокод, да? Я тоже 💩 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); | ||
|
||
// Любите говнокод, да? Я тоже 💩 |