verdantly
v1.0.3
Published
Node.js client for accessing plant species and variety data from the Verdantly API
Maintainers
Readme
Verdantly Node.js Client
The official Node.js client for accessing plant variety and species data from the Verdantly API.
Installation
npm install verdantlyGetting Started
You'll need a valid API key from RapidAPI.
import { VerdantlyClient } from 'verdantly';
const client = new VerdantlyClient({ apiKey: 'your-api-key' });Example Usage
const results = await client.searchPlantVarietiesByFilter({
category: "fruit",
waterRequirement: "low"
});
for (const plant of results.data) {
console.log(plant.name);
}More examples available in examples/starter.
Supported Endpoints
searchPlantVarietiesByName(query: string, page?: number)searchPlantVarietiesByFilter(filters: object, page?: number)searchPlantSpeciesByName(query: string, page?: number)searchPlantSpeciesByFilter(filters: object, page?: number)
TypeScript Support
All client responses are fully typed, with built-in TypeScript definitions included in the package.
Project Structure
src/— client source codeexamples/starter/— starter projectdist/— compiled output (after build)
License
MIT © Verdantly
