Have ideas to improve npm?Join in the discussion! »

    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);
    });

    Install

    npm i new-hope

    DownloadsWeekly Downloads

    2

    Version

    1.0.8

    License

    MIT

    Unpacked Size

    23.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar