JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q57036F
  • License Apache-2.0

Open Korean Text ported to JavaScript.

Package Exports

  • oktjs
  • oktjs/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (oktjs) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

oktjs

Port of Open Korean Text to JavaScript; it has no external dependencies, and runs in the browser.

Note that a modern browser with support for ES2018 RegExp unicode escapes is necessary.

Try it online!

Building

To build Oktjs, the following must be installed:

  • A JDK.
  • sbt to compile the Scala code.
  • yarn to fetch dependencies and bundle the JavaScript code.

Then, yarn can be used:

$ yarn build

Details

Oktjs uses Scala.js to compile Open Korean Text to JavaScript, so it is cloned as a submodule to use its sources. A few changes are required to make it work with JavaScript: