sanskrit-transcoder

1.2.3 • Public • Published

sanskrit-transcoder

Javascript port of the PHP/Python implementation of sanskrit transcoding.

This module provides a single method to transcode a string to and from a number of transliteration schemes:

Usage

npm install --save sanskrit-transcoder

Basic Example

const sanskritTranscoder = require('sanskrit-transcoder')
 
let transcoded
transcoded = sanskritTranscoder('jYAna', 'slp1', 'deva') // ज्ञान
transcoded = sanskritTranscoder('jYAna', 'slp1', 'roman') // jñāna
transcoded = sanskritTranscoder('jJAna', 'hk', 'slp1') // jYAna
transcoded = sanskritTranscoder('jJAna', 'hk', 'deva') // ज्ञान

API

sanskritTranscoder(sourceString, sourceScheme, targetScheme)

  • sourceString - the string to transcode which should be in the sourceScheme
  • sourceScheme - the transcoding scheme that your sourceString is in.
  • targetScheme - the transcoding scheme you want your output to be.

License

GPL License

Copyright 2020, Arjun Mehta

Dependencies (0)

    Dev Dependencies (9)

    Package Sidebar

    Install

    npm i sanskrit-transcoder

    Weekly Downloads

    1

    Version

    1.2.3

    License

    GPL-3.0

    Unpacked Size

    136 kB

    Total Files

    5

    Last publish

    Collaborators

    • arjunmehta