Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eyo-kernel

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eyo-kernel - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

3

CHANGELOG.md
# Changelog
## v2.0.1
Правки в README.md.
## v2.0.0

@@ -4,0 +7,0 @@ __API v2 не совместимо с v1__.

2

package.json
{
"name": "eyo-kernel",
"description": "Restoring the letter «ё» (yo) in russian texts",
"version": "2.0.0",
"version": "2.0.1",
"author": {

@@ -6,0 +6,0 @@ "name": "Denis Seleznev",

@@ -26,3 +26,3 @@ Восстановление буквы «ё» в русских текстах

## Использование
```
```js
const Eyo = require('eyo-kernel');

@@ -33,17 +33,17 @@ const text = 'Мой текст...';

const safeEyo = new Eyo();
safeEyo.loadSafeSync(); // ./dict/safe.txt
console.log('restore', safeEyo.restore(text));
console.log('lint', safeEyo.lint(text));
safeEyo.dictionary.loadSafeSync(); // ./dict/safe.txt
console.log(safeEyo.restore(text));
console.log(safeEyo.lint(text));
// Работа с небезопасным встроенным словарём.
const notSafeEyo = new Eyo();
notSafeEyo.loadNotSafeSync(); // ./dict/not_safe.txt
console.log('restore', notSafeEyo.restore(text));
console.log('lint', notSafeEyo.lint(text));
notSafeEyo.dictionary.loadNotSafeSync(); // ./dict/not_safe.txt
console.log(notSafeEyo.restore(text));
console.log(notSafeEyo.lint(text));
// Загрузка собственного словаря.
const eyo = new Eyo();
eyo.loadSync('./my_eyo_dict.txt');
console.log('restore', eyo.restore(text));
console.log('lint', eyo.lint(text));
eyo.dictionary.loadSync('./my_eyo_dict.txt');
console.log(eyo.restore(text));
console.log(eyo.lint(text));

@@ -53,9 +53,7 @@ // Создание собственного словаря.

// Добавить слово в свой словарь.
eyo.addWord('словоСБуквойЁ');
//...
eyo.dictionary.addWord('словоСБуквойЁ');
// Удалить слово из словаря.
eyo.removeWord('словоСБуквойЁ');
//...
eyo.dictionary.removeWord('словоСБуквойЁ');
// Очистить словарь.
eyo.clear();
eyo.dictionary.clear();
```

@@ -62,0 +60,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc