0.0.5 • Published 6 months ago

olca-ipc v0.0.5

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
6 months ago

olca-ipc.ts

This is a TypeScript client for the openLCA IPC API. It supports the JSON-RPC and REST protocol of that API. See also the openLCA IPC documentation and the examples of this repository for more details. There is also a small example that shows the usage of this package in a web-ui available here.

olca-ipc.ts is available as npm package. Alternatively, you can directly import the latest version in your modules when you use Deno:

import * as o from "https://raw.githubusercontent.com/GreenDelta/olca-ipc.ts/main/mod.ts";

const client = o.IpcClient.on(8080);
// ...

Building from source

The schema.ts module is generated from the openLCA schema definitions using the osch tool:

cd olca-schema/osch
# go build  # to compile the osch tool
./osch ts -o path/to/olca-ipc.ts/src/schema.ts
cd path/to/olca-ipc.ts
deno fmt  # format the generated code

Deno is used as development tool. The npm package can be created via dnt with the build_npm.ts script:

deno run --allow-all scripts/build_npm.ts
cd npm
npm publish
0.0.5

6 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.4

10 months ago

0.0.1

1 year ago