https://github.com/mhinz/node-thesaurus-com
Look up synonyms/antonyms on thesaurus.com.
https://github.com/mhinz/node-thesaurus-com
antonyms synonyms thesaurus
Last synced: 7 months ago
JSON representation
Look up synonyms/antonyms on thesaurus.com.
- Host: GitHub
- URL: https://github.com/mhinz/node-thesaurus-com
- Owner: mhinz
- License: mit
- Created: 2016-10-18T22:15:06.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-03T00:46:20.000Z (almost 5 years ago)
- Last Synced: 2025-04-10T23:37:38.328Z (7 months ago)
- Topics: antonyms, synonyms, thesaurus
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 17
- Watchers: 3
- Forks: 7
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/mhinz/node-thesaurus-com)
[](https://www.npmjs.com/package/thesaurus-com)
## Description
Use [thesaurus.com](http://www.thesaurus.com/) to look up synonyms and, if
available, antonyms.
Moreover, it comes with an executable called `tcom`, which can be used to start
a search from the shell. The output is either plain-text (by default) or JSON.
## Installation
```
$ npm install -g thesaurus-com
```
Or install it into the current directory, so you can play around with it:
```
$ npm install --save thesaurus-com
```
(The executable can then be found at `./node_modules/.bin/tcom`.)
## Usage
```javascript
var tcom = require('thesaurus-com');
console.log(tcom.search('never'));
// { synonyms:
// [ 'at no time',
// 'don\'t hold your breath',
// 'forget it',
// 'nevermore',
// 'no way',
// 'not at all',
// 'not ever',
// 'not in any way',
// 'not in the least',
// 'not on your life',
// 'not under any condition' ],
// antonyms: [ 'always', 'forever' ] }
```
```
$ tcom always
Synonyms: consistently, constantly, eternally, ever, everlastingly, evermore, for keeps, forevermore, in perpetuum, invariably, perpetually, regularly, repeatedly, till blue in the face, till cows come home, till hell freezes over, unceasingly, without exception
Antonyms: at no time, never
```
```
$ tcom -j always
{"synonyms":["consistently","constantly","eternally","ever","everlastingly","evermore","for keeps","forevermore","in perpetuum","invariably","perpetually","regularly","repeatedly","till blue in the face","till cows come home","till hell freezes over","unceasingly","without exception"],"antonyms":["at no time","never"]}
```