Textgears API for javascript 
Textgears API for node.js
install
install the package with npm:
$ npm install textgears-apior with yarn:
$ yarn add textgears-apiusage
import * as textgears from 'textgears-api';
const textgearsApi = textgears('YOUR_KEY', {language: 'en-US', ai: false});
textgearsApi.checkGrammar('I is a engineer')
.then((data) => {
for (const error of data.response.errors) {
console.log('Error: %s. Suggestions: %s', error.bad, error.better.join(', '));
}
})
.catch((err) => {});
You can run tests with command
npm testwhich is an alias for
nyc mochaor
./node_modules/nyc/bin/nyc.js ./node_modules/mocha/bin/mocha