electron-easy-spellcheck
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

electron-easy-spellcheck

Note: This library is inspired by electron-spell-check-provider and it works pretty much the same. The main difference is that this library tries to solve the issue with input lags by introducing a cache.

Installation

yarn add electron-easy-spellcheck

or

npm install electron-easy-spellcheck

Usage

// In the renderer process:
const webFrame = require('electron').webFrame;
const EasySpellCheck = require('electron-easy-spellcheck');

webFrame.setSpellCheckProvider('en-US', true, new EasySpellCheck());

Cache TTL

The cache has a pre-defined TTL, meaning that the cache will be cleared when the user haven't typed anything for the set TTL.

The default TTL is 10 seconds. You can modify this by passing in the desired TTL in the constructor like this new EasySpellCheck(CACHE_TTL).

Example

Run yarn start to start the example application.

Readme

Keywords

Package Sidebar

Install

npm i electron-easy-spellcheck

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • superchu