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

@basis-theory/basis-theory-js

Package Overview
Dependencies
Maintainers
4
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@basis-theory/basis-theory-js

## Installation

  • 1.0.0-alpha.26
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
21K
decreased by-31.44%
Maintainers
4
Weekly downloads
 
Created
Source

BasisTheory JS SDK (aka BasisTheory.js)

Installation

Using Node Package Manager

npm install --save @basis-theory/basis-theory-js

Using Yarn

yarn add @basis-theory/basis-theory-js

Documentation

For a complete list of endpoints and examples, please refer to our API docs

Usage

Initialization

import { BasisTheory } from '@basis-theory/basis-theory-js';

const bt = await new BasisTheory().init('key_N88mVGsp3sCXkykyN2EFED'); // replace with your application key

Per-request configuration

All of the service methods accept an optional RequestOptions object. This is used if you want to set a correlation ID or if you want to set a per-request X-API-KEY

import { v4 as uuid } from 'uuid';

await bt.applications.list(
  {},
  {
    apiKey: 'key_N88mVGsp3sCXkykyN2EFED',
    correlationId: 'aa5d3379-6385-4ef4-9fdb-ca1341572153',
  }
);

Development

The provided scripts with the SDK will check for all dependencies, start docker, build the solution, and run all tests.

Dependencies

Build the SDK and run Tests

Run the following command from the root of the project:

make verify

FAQs

Package last updated on 16 Aug 2021

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