tibetan-mantra-to-iast-and-phonetics 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -10
- package/package.json +1 -1
- package/src/tests.js +6 -1
package/README.md
CHANGED
|
@@ -3,22 +3,12 @@
|
|
|
3
3
|
A naive attempt at converting the mantras from Unicode Tibetan into
|
|
4
4
|
IAST (International Alphabet of Sanskrit Transliteration) and phonetics.
|
|
5
5
|
|
|
6
|
-

|
|
7
|
-
|
|
8
6
|
## Installation
|
|
9
7
|
|
|
10
8
|
```bash
|
|
11
9
|
npm install tibetan-mantra-to-iast-and-phonetics
|
|
12
10
|
```
|
|
13
11
|
|
|
14
|
-
Or if using as a local package:
|
|
15
|
-
|
|
16
|
-
```bash
|
|
17
|
-
npm install /path/to/tibetan-mantra-to-iast-and-phonetics
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Usage as a Library
|
|
21
|
-
|
|
22
12
|
### Basic Usage
|
|
23
13
|
|
|
24
14
|
```javascript
|
package/package.json
CHANGED
package/src/tests.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import TibetanMantraToIastAndPhonetics from "./lib/tibetan-mantra-to-iast-and-phonetics.js";
|
|
2
2
|
|
|
3
|
+
export { TibetanMantraToIastAndPhonetics };
|
|
4
|
+
|
|
3
5
|
export const testGroups = [
|
|
4
6
|
{
|
|
5
7
|
name: "All mantras from Mipham Rinpoché's Le Drip Gyü Chö - Sanskrit transliteration",
|
|
@@ -57,7 +59,10 @@ export function runTests() {
|
|
|
57
59
|
return results;
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
if (
|
|
62
|
+
if (
|
|
63
|
+
typeof process !== "undefined" &&
|
|
64
|
+
import.meta.url === `file://${process.argv[1]}`
|
|
65
|
+
) {
|
|
61
66
|
const results = runTests();
|
|
62
67
|
let totalPassed = 0;
|
|
63
68
|
let totalTests = 0;
|