@ogcapi-js/processes
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

@ogcapi-js/processes

npm

A lightweight JavaScript client library for OGCAPI - Processes.

This library works with endpoints defined at:

See more details at the documentation.

Installation

npm install @ogcapi-js/processes

Usage

Node.js

This library uses the global fetch function for HTTP requests. Please consider using isomorphic-fetch for polyfill.

require('isomorphic-fetch');

const { ProcessesService } = require('@ogcapi-js/processes');

// create a new service client
const service = new ProcessesService({
  baseUrl: 'https://ogcapi.service.com'
});

// get all processes from the service
const collections = await services.getProcesses();

Browser

Modern browsers already support the global fetch function so there is no need to polyfill.

import { ProcessesService } from `@ogcapi-js/processes`;

// create a new service client
const service = new ProcessesService({
  baseUrl: 'https://ogcapi.service.com'
});

// get all processes from the service
const processes = await services.getProcesses();

Readme

Keywords

none

Package Sidebar

Install

npm i @ogcapi-js/processes

Weekly Downloads

0

Version

1.1.1

License

MIT

Unpacked Size

279 kB

Total Files

12

Last publish

Collaborators

  • haoliang