textrazor
Version:
TextRazor SDK for node.js
35 lines (26 loc) • 586 B
Markdown
> TextRazor SDK for node.js
Install using npm:
```sh
$ npm install textrazor --save
```
```javascript
const TextRazor = require('textrazor')
const textRazor = new TextRazor('<YOUR API KEY>')
const content = 'The Federal Reserve is the enemy of Ron Paul.'
const options = { extractors: 'entities,topics' }
textRazor.exec(content, options)
.then(res => console.log(JSON.stringify(res)))
.catch(err => console.error(err))
```
Run tests:
```sh
$ npm test
```
Runs in Node.js v4.0+
The MIT License (MIT)
Copyright (c) 2016