turengjs
Version:
This is an unofficial node module and command line tool for tureng.com. It allows to search a turkish-english word from your node app and command line (must be installed globally)
16 lines • 402 B
JavaScript
var tureng = require('./tureng.js');
tureng(process.argv[2], function(error, data) {
if(error) {
console.log(error.message);
} else {
data.categories.forEach(function (category) {
console.log('\n' + category.name);
category.results.forEach(function (result) {
console.log(result.type + ' ' +
result.english + ' ' +
result.turkish);
});
});
}
});