With node.js:
$ npm install salita-component
or with component
$ component install mbykov/salita
Or as standalone version:
<script src="salita.js"></script>
var salita = require('salita');
salita.slp2sa('satyAnfta').should.equal('सत्यानृत');
salita.sa2slp('सत्यानृत').should.equal('satyAnfta');
salita.iast2sa('satyAnfta').should.equal('सत्यानृत');
salita.sa2iast('सत्यानृत').should.equal('satyAnfta');
View more examples in test suite
$ make test
open text/index.html
GNU GPL