PhytoJS: @rondinif/phytojs
A modern javascript library to search about plants on open data
- The prefix phyto- , comes from Ancient Greek φυτόν (phutón, “plant”), is used when something is pertaining to or derived from plants.
- js is the abbreviation of javascript.
Install
npm i @rondinif/phytojs --save
Usage
see below at the examples section...
Development
Clone the package and install the npm dependencies with npm i
.
git clone https://github.com/rondinif/phytojs.git
cd phytojs
npm i
Build & Test & Coverage
npm run clean:prepare:cover
Unit tests
npm test
# to execute specific test suites:
npm run test-main
npm run test-config
npm run test-config-stubbed
npm run test-odla
npm run test-odla-special
npm run test-odla-stubbed
npm run test-odla-sandboxed
Examples
PhytoJS Samples for NodeJS
There are examples that use both require
and import
to reference the PhytoJS servive module.
- UMD (Universal Module Definition)
-
AMD
andCJS
(CommonJS
) are both compatible withUMD
-
- ESM / ES6 (ECMAScript.next and TC39 Module Definition)