Skip to content

Minimalistic ES6-Next example of PhytoJS usage that runs in NodeJS and lookup opendata for the taxon of the plant corrensponding to italian vernacular name 'origano'

License

Notifications You must be signed in to change notification settings

9llara/phytojs-minimal-node-esm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

phytojs-minimal-node-esm

Minimalistic ES6-Next example of PhytoJS usage that runs in NodeJS and lookup opendata for the taxon of the plant corrensponding to italian vernacular name 'origano'

development workflow

git clone https://github.com/9llara/phytojs-minimal-node-esm.git
cd phytojs-minimal-node-esm
npm i
npm test
npm start

example

$ node -r esm index.js | jq

[
  {
    "wdEntityId": "Q205265",
    "wdPageId": 201609,
    "wdSnippet": "genus of plants",
    "scientificName": "Origanum",
    "taxonRankId": "http://www.wikidata.org/entity/Q34740",
    "taxonRankLabel": "genus",
    "specieArticle": "https://species.wikimedia.org/wiki/Origanum",
    "image": "http://commons.wikimedia.org/wiki/Special:FilePath/Origanum-vulgare.JPG"
  },
  {
    "wdEntityId": "Q134283",
    "wdPageId": 136029,
    "wdSnippet": "species of plant",
    "scientificName": "Origanum vulgare",
    "taxonRankId": "http://www.wikidata.org/entity/Q7432",
    "taxonRankLabel": "species",
    "specieArticle": "https://species.wikimedia.org/wiki/Origanum_vulgare",
    "image": "http://commons.wikimedia.org/wiki/Special:FilePath/ChristianBauer%20flowering%20oregano.jpg"
  }
]

About

Minimalistic ES6-Next example of PhytoJS usage that runs in NodeJS and lookup opendata for the taxon of the plant corrensponding to italian vernacular name 'origano'

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published