https://github.com/softmarshmallow/lexico-node
Unofficial lexico api for node, written in ts.
https://github.com/softmarshmallow/lexico-node
api lexico node oxford
Last synced: 2 months ago
JSON representation
Unofficial lexico api for node, written in ts.
- Host: GitHub
- URL: https://github.com/softmarshmallow/lexico-node
- Owner: softmarshmallow
- License: mit
- Created: 2020-07-14T03:15:38.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-30T17:51:40.000Z (almost 5 years ago)
- Last Synced: 2025-03-04T09:43:53.777Z (2 months ago)
- Topics: api, lexico, node, oxford
- Language: TypeScript
- Homepage:
- Size: 37.1 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lexico Node Api
Unofficial lexico api for node, written in ts.## installation
```shell
yarn add lexico-node
# or if you prefer npm..npm install lexico-node --save
```## for testing. (do not use for commercial usage, only for testing purpose)
```typescript
import { scrap } from "lexico-node"
scrap({
token: "abash"
}).then((r) => {
console.log(r)
});/// logs
/*
{
token: 'abash',
senses: [
{
num: '',
senseRegion: '',
domainLabels: '',
grammaticalNote: '',
senseRegisters: '',
def: 'Make (someone) feel embarrassed, disconcerted, or ashamed.',
primaryExample: '‘if anything was officially done or said to him, it did not abash him’',
examples: [Array],
synonyms: '',
pos: 'verb'
}
],
origin: 'Middle English from Anglo-Norman French abaiss-; compare with Old French esbaiss-, lengthened stem of esbair, from es- ‘utterly’ + bair ‘astound’.',
pronounse: '/əˈbaʃ/',
audio: 'https://lex-audio.useremarkable.com/mp3/abash_gb_1.mp3'
}*/
```## the actual api usage with app id, and app key
```typescript
import { LexicoApi } from "lexico-node"
LexicoApi.init({
appId: "~",
appKey: "~"
})LexicoApi.search("abash")
```