var googleTransliterate = require('google-transliterate');
var transliteration = '';
kk = googleTransliterate.transliterate('what is this buddha', 'en', 'hi', function(err, transliteration){
console.log(transliteration);
console.log(transliteration[0]['hws']);
var fs = require('fs');
fs.writeFile("./pk.txt", transliteration[0]['hws'], function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved!");
});
});
var transliteration = '';
kk = googleTransliterate.transliterate('what is this buddha', 'en', 'hi', function(err, transliteration){
console.log(transliteration);
console.log(transliteration[0]['hws']);
var fs = require('fs');
fs.writeFile("./pk.txt", transliteration[0]['hws'], function(err) {
if(err) {
return console.log(err);
}
console.log("The file was saved!");
});
});
Comments
Post a Comment