1.1.1 • Published 1 year ago

@ogcapi-js/processes v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@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();
1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

2 years ago