new-hope
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

new-hope logo

Esperanto tokenizer written in TypeScript

npm version StackShare


Esperanto?

Esperanto is a constructed language created by L. L. Zamenhof in 1887. Find out more here and check out the great Duolingo Esperanto Course.


Usage

ES6/TypeScript style import
import {split, tokenize} from "new-hope";
 
const words = split("Mi parolas Esperanton.");
const tokens = tokenize(words);
Node.js style import
const newHope = require("new-hope");
 
const words = newHope.split("Mi parolas Esperanton.");
const tokens = newHope.tokenize(words);
AMD style import
require(["new-hope"], (newHope) => {
  const words = newHope.split("Mi parolas Esperanton.");
  const tokens = newHope.tokenize(words);
});

Dependencies (0)

    Dev Dependencies (8)

    Package Sidebar

    Install

    npm i new-hope

    Weekly Downloads

    8

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    23.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • maroun-baydoun