Skip to content

textgears/api-node

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Textgears API for javascript travis-badge

Textgears API for node.js

install

install the package with npm:

$ npm install textgears-api

or with [yarn][yarn]:

$ yarn add textgears-api

usage

import 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 test

which is an alias for

nyc mocha

or

./node_modules/nyc/bin/nyc.js ./node_modules/mocha/bin/mocha

https://github.com/textgears/api-node

About

Textgears API for JavaScript apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published