Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

@lucidtech/las-sdk-core

Package Overview
Dependencies
3
Maintainers
2
Versions
81
Issues
File Explorer

Advanced tools

@lucidtech/las-sdk-core

undefined

    9.1.1latest

Version published
Maintainers
2
Yearly downloads
8,288
increased by93.74%

Weekly downloads

Readme

Source

JavaScript SDK for Lucidtech AI Services API

Installation

Browser version

$ yarn add @lucidtech/las-sdk-browser $ npm install @lucidtech/las-sdk-browser

Node version

$ yarn add @lucidtech/las-sdk-node $ npm install @lucidtech/las-sdk-node

Usage

import { Client } from '@lucidtech/las-sdk-core'; import { ClientCredentials } from '@lucidtech/las-sdk-node'; import { readFile } from 'fs/promises' const fileBuffer = await readFile('...path/file.jpg') const credentials = new ClientCredentials('<apiEndpoint>', '<clientId>', '<clientSecret>', '<authEndpoint>'); const client = new Client(credentials); const documentResponse = await client.createDocument(fileBuffer, 'image/jpeg');

Contributing

Requirements: npm version >=7 (workspaces support)

Install dependencies

$ npm install

Build

$ npm run build

Run tests

$ npm run test
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc