8000 GitHub - rondinif/phytojs at v1.1.0
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

rondinif/phytojs

Repository files navigation

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...

Develop

Clone the package and install the npm dependencies with npm i.

git clone https://github.com/rondinif/phytojs.git
cd phytojs
npm i

Build

npm run clean:prepare:cover

Unit tests

npm test
# to execute specific test suites: 
npm run test-index
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

There are examples that use both require and import to reference the PhytoJS servive module.

  • UMD (Universal Module Definition)
    • AMD and CJS (CommonJS) are both compatible with UMD
  • ESM / ES6 (ECMAScript.next and TC39 Module Definition)
0