+
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 prepare

Unit tests

npm test

Examples

UMD (Universal Module Definition) sample

AMD and CJS (CommonJS) are both compatible with UMD.

run UMD example that uses require.
node  ./samples/index.umd.js
run UMD example that uses import.
node  -r esm ./samples/index.umd.esm.js
run ESM example.
node  -r esm ./samples/index.esm.js
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载