Finds entities (people, places, organizations, titles) in VIAF. Meant to be used with cwrc-public-entity-dialogs where it runs in the browser.
npm i viaf-entity-lookup -S
import viafLookup from 'viaf-entity-lookup';
where the 'query' argument is an object:
entity: "The name of the thing the user wants to find.";options: "TBD";
and all find methods return promises that resolve to an object like the following:
There are a further four methods that are mainly made available to facilitate testing (to make it easier to mock calls to the VIAF service):
where the 'query' argument is the entity name to find and the methods return the VIAF URL that in turn returns results for the query.
CWRC-Writer-Dev-Docs describes general development practices for CWRC-Writer GitHub repositories, including this one.
We use Travis.
We follow SemVer, which Semantic Release makes easy. Semantic Release also writes our commit messages, sets the version number, publishes to NPM, and finally generates a changelog and a release (including a git tag) on GitHub.