leximaven
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -62,2 +62,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -108,4 +109,3 @@ var config = noon.load(CFILE); | ||
type: 'definition', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -112,0 +112,0 @@ var cstyle = _.get(chalk, theme.connector.style); |
@@ -55,2 +55,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -98,4 +99,3 @@ var config = noon.load(CFILE); | ||
type: 'example', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -102,0 +102,0 @@ http({ url: url }, function (error, response) { |
@@ -56,2 +56,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -98,4 +99,3 @@ var config = noon.load(CFILE); | ||
type: 'hyphenation', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -102,0 +102,0 @@ var ctstyle = _.get(chalk, theme.content.style); |
@@ -45,2 +45,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -84,4 +85,3 @@ var config = noon.load(CFILE); | ||
type: 'etymology', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -88,0 +88,0 @@ var ctstyle = _.get(chalk, theme.content.style); |
@@ -55,2 +55,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -98,4 +99,3 @@ var config = noon.load(CFILE); | ||
type: 'phrase', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -102,0 +102,0 @@ http({ url: url }, function (error, response) { |
@@ -61,2 +61,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -106,4 +107,3 @@ var config = noon.load(CFILE); | ||
type: 'pronunciation', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -110,0 +110,0 @@ tofile.word = word; |
@@ -55,2 +55,3 @@ 'use strict'; | ||
exports.handler = function (argv) { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.'); | ||
tools.checkConfig(CFILE); | ||
@@ -98,4 +99,3 @@ var config = noon.load(CFILE); | ||
type: 'related words', | ||
source: 'http://www.wordnik.com', | ||
url: url | ||
source: 'http://www.wordnik.com' | ||
}; | ||
@@ -102,0 +102,0 @@ tofile.word = word; |
@@ -5,2 +5,17 @@ # Change Log | ||
<a name="1.2.0"></a> | ||
# [1.2.0](https://github.com/drawnepicenter/leximaven/compare/v1.1.0...v1.2.0) (2016-08-26) | ||
### Bug Fixes | ||
* **wordnik:** remove url from outfile ([2dac4dc](https://github.com/drawnepicenter/leximaven/commit/2dac4dc)), closes [#8](https://github.com/drawnepicenter/leximaven/issues/8) | ||
### Features | ||
* **wordnik:** check for API key ([bbf9dab](https://github.com/drawnepicenter/leximaven/commit/bbf9dab)) | ||
<a name="1.1.0"></a> | ||
@@ -7,0 +22,0 @@ # [1.1.0](https://github.com/drawnepicenter/leximaven/compare/v1.0.2...v1.1.0) (2016-08-26) |
{ | ||
"name": "leximaven", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A command line tool for searching word-related APIs.", | ||
@@ -5,0 +5,0 @@ "author": "Andrew Prentice", |
@@ -60,2 +60,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -106,3 +107,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -109,0 +109,0 @@ const cstyle = _.get(chalk, theme.connector.style) |
@@ -53,2 +53,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -96,3 +97,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -99,0 +99,0 @@ http({ url }, (error, response) => { |
@@ -54,2 +54,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -96,3 +97,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -99,0 +99,0 @@ const ctstyle = _.get(chalk, theme.content.style) |
@@ -43,2 +43,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -82,3 +83,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -85,0 +85,0 @@ const ctstyle = _.get(chalk, theme.content.style) |
@@ -53,2 +53,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -96,3 +97,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -99,0 +99,0 @@ http({ url }, (error, response) => { |
@@ -59,2 +59,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -104,3 +105,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -107,0 +107,0 @@ tofile.word = word |
@@ -53,2 +53,3 @@ /* eslint max-len:0 */ | ||
exports.handler = (argv) => { | ||
if (process.env.WORDNIK === undefined) throw new Error('Put an API key in environment variable WORDNIK per documentation.') | ||
tools.checkConfig(CFILE) | ||
@@ -96,3 +97,2 @@ let config = noon.load(CFILE) | ||
source: 'http://www.wordnik.com', | ||
url, | ||
} | ||
@@ -99,0 +99,0 @@ tofile.word = word |
@@ -769,3 +769,2 @@ 'use strict'; | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquity/definitions?useCanonical=false&sourceDictionaries=all&includeRelated=false&includeTags=false&limit=1&partOfSpeech=&api_key=' + process.env.WORDNIK, | ||
text0: 'Existence or apparent existence everywhere at the same time; omnipresence: "the repetitiveness, the selfsameness, and the ubiquity of modern mass culture” ( Theodor Adorno ). ', | ||
@@ -789,3 +788,2 @@ deftype0: 'noun', | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquity/examples?useCanonical=false&includeDuplicates=false&limit=1&skip=0&api_key=' + process.env.WORDNIK, | ||
example0: 'Both are characterized by their ubiquity and their antiquity: No known human culture lacks them, and musical instruments are among the oldest human artifacts, dating to the Late Pleistocene about 50,000 years ago.' | ||
@@ -807,3 +805,2 @@ }; | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquity/hyphenation?useCanonical=false&limit=5&api_key=' + process.env.WORDNIK, | ||
syllable0: 'u', | ||
@@ -828,3 +825,2 @@ stress1: 'biq', | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquity/etymologies?useCanonical=false&api_key=' + process.env.WORDNIK, | ||
etymology: '[L. everywhere, fr. where, perhaps for , (cf. anywhere), and if so akin to E. : cf. F. .]', | ||
@@ -847,3 +843,2 @@ origin: 'ubique, ubi, cubi, quobi, alicubi, who, ubiquité' | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquitous/phrases?useCanonical=false&limit=1&wlmi=13&api_key=' + process.env.WORDNIK, | ||
agram0: 'ubiquitous', | ||
@@ -866,3 +861,2 @@ bgram0: 'amoeba' | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquity/pronunciations?useCanonical=false&limit=5&api_key=' + process.env.WORDNIK, | ||
word: 'ubiquity', | ||
@@ -888,3 +882,2 @@ pronunciation0: '(yo͞o-bĭkˈwĭ-tē)', | ||
source: 'http://www.wordnik.com', | ||
url: 'http://api.wordnik.com:80/v4/word.json/ubiquity/relatedWords?useCanonical=false&limitPerRelationshipType=1&api_key=' + process.env.WORDNIK, | ||
word: 'ubiquity', | ||
@@ -1138,3 +1131,3 @@ type0: 'antonym', | ||
it('handles no found anagrams', function (done) { | ||
child.exec('node ' + process.cwd() + '/build/leximaven.js anagram bcdfghjklmnpqrstvwxz > test/output/anagram.out', function (err) { | ||
child.exec('node ' + process.cwd() + '/build/leximaven.js anagram bcdfghjklmnp > test/output/anagram.out', function (err) { | ||
var stdout = fs.readFileSync('test/output/anagram.out', 'utf8'); | ||
@@ -1141,0 +1134,0 @@ expect(stdout.replace(/(\r\n|\n|\r)\s?/gm, '\n')).to.match(/No anagrams found\./mig); |
Sorry, the diff of this file is not supported yet
327896
5950
86