Fwew, the powerful Na'vi dictionary search library, as an npm package written in TypeScript.
- Search
- List
- Random
- Number
Install fwew.js with yarn
yarn add fwew.js
To run tests, run the following command
yarn test
To run tests with coverage, run
yarn coverage
import { fwew } from 'fwew.js'
const searchNaviWord = "lì'u"
const results = fwew.translateFromNavi(searchNaviWord)
console.log(results)
import { fwew } from 'fwew.js'
const searchWord = 'word'
const langCode = 'en'
const results = fwew.translateToNavi(searchNaviWord, langCode)
console.log(results)
import { list } from 'fwew.js'
const criteria = ['word', 'starts', 'tì', 'and', 'pos', 'is', 'n.']
const results = list(criteria)
console.log(results)
import { random } from 'fwew.js'
const criteria = ['pos', 'is', 'vtr.']
const numRandomWords = 8
const results = random(numRandomWords, criteria)
console.log(results)
import { numbers } from "fwew.js"
const result = numbers.naviToNumber("mevopey")
console.log(result)
import { numbers } from "fwew.js"
const result = numbers.numberToNavi(42)
console.log(result)