@pipium/node-connect
v0.0.6
Published
Pipium Node.js client that connects your code to the Pipium platform.
Downloads
251
Readme
Pipium Node.js client
This is the package that connects Node.js models with the Pipium platform.
Installation
yarn add @pipium/node-connect
Code
import { connect } from '@pipium/node-connect';
connect('your-securely-stored-api-key', {
hello_world: {
name: 'Hello world!',
run_sync: ({ text }) => 'Hello ' + text,
types: {
inputs: ['text/plain'],
output: 'text/plain',
},
},
});