New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@threekit/node-sdk

Package Overview
Dependencies
Maintainers
21
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@threekit/node-sdk

This is a helper package for the Threekit REST API. It allows you to use our REST API directly from Node.JS with a high level of abstraction.

  • 3.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
21
Created
Source

@threekit/node-sdk

This is a helper package for the Threekit REST API. It allows you to use our REST API directly from Node.JS with a high level of abstraction.

Supported APIs

This version of the API supports these main APIs:

  • Access Tokens
  • Asset Jobs
  • Assets
  • Configurations
  • Customers
  • Data Tables
  • Fast Compositor
  • Files
  • Images
  • Orders
  • Webhooks

Example Usage

import { threekitNodeClient } from '@threekit/node-sdk';

const tk = threekitNodeClient({
  authType: 'private',
  privateToken: '29443f10-c3a5-4a91-b33e-d1bdfcd8f2ec',
  apiHost: 'https://preview.threekit.com'
});

const fileStream = fs.createReadStream(fileName);
const uploadedFile = await tk.files.upload(
  fileStream,
  'myImage.png',
  'image/png'
);

const download = await tk.files.download(uploadedFile.id);

const contentFileName = path.join(tempDirectory, uploadedFile.filename);
const writeStream = fs.createWriteStream(contentFileName);
readableStream.pipe(download.data as NodeJS.ReadableStream);

FAQs

Package last updated on 28 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc