1.22.0 • Published 12 months ago

@sc-voice/pali v1.22.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@sc-voice/pali

JavaScript library for searching Digital Pali Dictionary

Command Line

The command line program requires NodeJS version 20 or later. If you do not have NodeJS installed, consider using nvm to install NodeJS. For a command line program that gives quick access to DPD:

git clone https://github.com/sc-voice/pali
cd pali
npm install
./scripts/dpd --help
./scripts/dpd dhamma
./scripts/dpd -mu dhamma
./scripts/dpd -md 'superior virtue'

Library

For an existing Javascript project (browser or web), install the library as follows:

npm install @sc-voice/pali@latest

The primary class of interest is Dictionary:

import { Dictionary } from '@sc-voice/pali/main.mjs'

let dict = await Dictionary.create();
let dhamma = dict.find("dhamma", {method: 'entry'});
1.22.0

12 months ago

1.21.0

12 months ago

1.20.0

1 year ago

1.19.0

1 year ago

1.18.0

1 year ago

1.17.0

1 year ago

1.16.0

1 year ago

1.15.0

1 year ago

1.14.0

1 year ago

1.12.0

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago

1.9.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago