@lsbjordao/ffb-js
v0.0.13
Published
```bash npm i @lsbjordao/ffb-js ```
Downloads
8
Readme
Flora and Fungi of Brazil SDK for JavaScript
Installing package
npm i @lsbjordao/ffb-jsFetch data of taxa
// Initialize an instance of the FFB library
const FFBjs = require('@lsbjordao/FFB-js').default;
// Initialize an instance of the FFB library
const FFB = new FFBjs();
async function main() {
const families = await FFB.fetchFamilies()
const genera = await FFB.fetchGeneraOfFamily(families[0])
const species = await FFB.fetchSpeciesOfGenus(genera[0])
const taxon = await FFB.fetchTaxon(species[0])
}
// Call the function
main()