Skip to content

mobilusoss/textlint-browser-runner

Repository files navigation

textlint-browser-runner

lerna Node.js CI Build Status FOSSA Status codebeat badge

textlint for browser bundled with Japanese preset rules.

Packages

Downloads

Usage

<script>
window.kuromojin = {
  dicPath: "https://cdn.jsdelivr.net/npm/kuromoji@0.1.2/dict"
};
</script>
<script src="https://cdn.jsdelivr.net/npm/textlint-browser-runner@latest/dist/textlint.bundle.min.js"></script>
<script>
  var linter = new Textlint(options);
  linter.lintText('お刺身が食べれない').then(console.log).catch(console.log)
</script>

Or create your own bundle with textlint-bundler

Demo

Try here.

License

FOSSA Status