npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

oxford-dictionary-api

v1.0.1

Published

A node module for easy access of oxford-dictionary-api

Downloads

16

Readme

oxford-dictionary-api

A node module for easy access of oxford-dictionary api

Usage: var Dictionary = require("oxford-dictionary-api");

var app_id = "your oxford-account app id"; var app_key = "your oxford-account app key";

var dict = new Dictionary(app_id,app_key);

dict.find("ace",function(error,data){ if(error) return console.log(error); console.log(data); });

Response: Response is a json object from which you can access the required details such as definition,type,audio files,example statements.

{ "metadata": { "provider": "Oxford University Press" }, "results": [ { "id": "ace", "language": "en", "lexicalEntries": [ { "entries": [ { "grammaticalFeatures": [ { "text": "Positive", "type": "Degree" } ], "homographNumber": "001", "senses": [ { "definitions": [ "very good:" ], "examples": [ { "text": "Ace! You've done it!" }, { "text": "an ace swimmer" } ], "id": "m_en_gb0004640.006", "registers": [ "informal" ] } ] } ], "language": "en", "lexicalCategory": "Adjective", "pronunciations": [ { "audioFile": "http://audio.oxforddictionaries.com/en/mp3/ace_gb_1.mp3", "dialects": [ "British English" ], "phoneticNotation": "IPA", "phoneticSpelling": "eɪs" } ], "text": "ace" }, { "entries": [ { "etymologies": [ "Middle English (denoting the ‘one’ on dice): via Old French from Latin as unity, a unit" ], "grammaticalFeatures": [ { "text": "Singular", "type": "Number" } ], "homographNumber": "000", "senses": [ { "definitions": [ "a playing card with a single spot on it, ranked as the highest card in its suit in most card games:" ], "domains": [ "Cards" ], "examples": [ { "registers": [ "figurative" ], "text": "life had started dealing him aces again" }, { "text": "the ace of diamonds" } ], "id": "m_en_gb0004640.001" }, { "definitions": [ "a person who excels at a particular sport or other activity:" ], "domains": [ "Sport" ], "examples": [ { "text": "a motorcycle ace" } ], "id": "m_en_gb0004640.002", "registers": [ "informal" ], "subsenses": [ { "definitions": [ "a pilot who has shot down many enemy aircraft:" ], "domains": [ "Air Force" ], "examples": [ { "text": "a Battle of Britain ace" } ], "id": "m_en_gb0004640.003", "registers": [ "informal" ] } ] }, { "definitions": [ "(in tennis and similar games) a service that an opponent is unable to return and thus wins a point:" ], "domains": [ "Tennis" ], "examples": [ { "text": "Nadal banged down eight aces in the set" } ], "id": "m_en_gb0004640.004", "subsenses": [ { "definitions": [ "a hole in one:" ], "domains": [ "Golf" ], "examples": [ { "text": "his hole in one at the 15th was Senior's second ace as a professional" } ], "id": "m_en_gb0004640.005", "registers": [ "informal" ] } ] } ] } ], "language": "en", "lexicalCategory": "Noun", "pronunciations": [ { "audioFile": "http://audio.oxforddictionaries.com/en/mp3/ace_gb_1.mp3", "dialects": [ "British English" ], "phoneticNotation": "IPA", "phoneticSpelling": "eɪs" } ], "text": "ace" }, { "entries": [ { "grammaticalFeatures": [ { "text": "Transitive", "type": "Subcategorization" }, { "text": "Present", "type": "Tense" } ], "homographNumber": "002", "senses": [ { "definitions": [ "(in tennis and similar games) serve an ace against (an opponent):" ], "domains": [ "Tennis" ], "examples": [ { "text": "he can ace opponents with serves of no more than 62 mph" } ], "id": "m_en_gb0004640.007", "registers": [ "informal" ], "subsenses": [ { "definitions": [ "score an ace on (a hole) or with (a shot):" ], "domains": [ "Golf" ], "examples": [ { "text": "there was a prize for the first player to ace the hole" } ], "id": "m_en_gb0004640.008" } ] }, { "definitions": [ "achieve high marks in (a test or exam):" ], "examples": [ { "text": "I aced my grammar test" } ], "id": "m_en_gb0004640.009", "regions": [ "North American" ], "registers": [ "informal" ], "subsenses": [ { "definitions": [ "outdo someone in a competitive situation:" ], "examples": [ { "text": "the magazine won an award, acing out its rivals" } ], "id": "m_en_gb0004640.010", "regions": [ "North American" ] } ] } ] } ], "language": "en", "lexicalCategory": "Verb", "pronunciations": [ { "audioFile": "http://audio.oxforddictionaries.com/en/mp3/ace_gb_1.mp3", "dialects": [ "British English" ], "phoneticNotation": "IPA", "phoneticSpelling": "eɪs" } ], "text": "ace" } ], "type": "headword", "word": "ace" } ] }