Security News
The Dark Side of Open Source
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
oxford-dictionaries-api
Advanced tools
Readme
node module wrapper for Oxford dictionaries api v2
npm install --save oxford-dictionaries-api
Initialize an instance of the OxfordDictionaries class to use
// need app_id and app_key
const app_id = 'your_appid'
const app_key = 'your_appkey';
let oxford= require('oxford-dictionaries-api');
let oxforddictionaries = new oxford(app_id, app_key);
Note: A lot of the key names for the functions' objects are taken from the oxford docs Here. I might not have updated this readme cause I probably would be working on other things. (I think the biggest thing that people would usually use is entries, which should get you the definition of words)
function takes in an object with the following:
Key | Type | Optional | About | Default | Example |
---|---|---|---|---|---|
word_id | String | No | The identifier for an Entry (case-sensitive). | Null | "ace" |
source_lang | String | Yes | Language code of the source language in a monolingual dataset. | "en-gb" | "en-gb" |
fields | Array[String] | Yes | A comma-separated list of data fields to return for the matched entries | Null | ["definitions", "domains"] |
grammaticalFeatures | Array[String] | Yes | A comma-separated list of grammatical features ids to match on (default: all features). | Null | ["Cardinal", "Ordinal"] |
lexicalCategory | Array[String] | Yes | A comma-separated list of lexical categories ids to match on (default: all categories). | Null | |
domains | Array[String] | Yes | A comma-separated list of domains ids to match on (default: all domains). | Null | |
registers | Array[String] | Yes | A comma-separated list of registers ids to match on (default: all registers). | Null | |
strictMatch | Boolean | Yes | Specifies whether diacritics must match exactly. | False | True |
Example:
oxforddictionaries.entries({word_id: 'ace'})
.then((data) => console.log(data))
.catch((e) => console.log('Error', e));
FAQs
node module wrapper for oxford dictionaries api
The npm package oxford-dictionaries-api receives a total of 1 weekly downloads. As such, oxford-dictionaries-api popularity was classified as not popular.
We found that oxford-dictionaries-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.
Security News
OpenJS is warning of social engineering takeovers targeting open source projects after receiving a credible attempt on the foundation.