wikidata-entity-reader
TypeScript icon, indicating that this package has built-in type declarations

4.1.1 • Public • Published

wikidata-entity-reader

NPM Version node

read information of wikidata entities in a simpler way

This library is meant to help with things like labels in a predefined language or faster access to claims

Install

npm install wikidata-entity-reader

Usage

import { WikibaseEntityReader } from 'wikidata-entity-reader';

const reader = new WikibaseEntityReader(entity, 'en');

reader.label();
//=> 'human'

reader.label('de');
//=> 'Mensch'

Readme

Keywords

Package Sidebar

Install

npm i wikidata-entity-reader

Weekly Downloads

29

Version

4.1.1

License

MIT

Unpacked Size

9.89 kB

Total Files

5

Last publish

Collaborators

  • edjopato