🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@bitwarden/sdk-napi

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitwarden/sdk-napi

This crate is used to create a complied Node.js package for the Bitwarden SDK using the NAPI-RS framework.

Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
5.3K
61.07%
Maintainers
3
Weekly downloads
 
Created
Source

Bitwarden-napi crate

This crate is used to create a complied Node.js package for the Bitwarden SDK using the NAPI-RS framework.

This was created using the napi new command

Getting started

Move to the bitwarden-napi directory

cd ./crates/bitwarden-napi

Install the npm dependencies (note node needs to be installed)

npm install

Build

npm run build

In the ./crates/bitwarden-napi directory three files will be generated:

  • sdk-napi.*.node
  • binding.js
  • binding.d.ts

The sdk-napi.*.node is a Node.js addon binary file, for the current running operating system.

For example on an M1 MacBook sdk-napi.darwin-arm64.node will be generated.

The binding.js is the generated JavaScript binding file which helps export the addon to the package caller.

The binding.d.ts is the generated TypeScript definition file used for TypeScript definitions for the package caller.

Package

  • binding files
  • TypeScript source files ./src/bitwarden_client
  • JS and TypeScript definition files ./lib/bitwarden_client

Make up the entire NPM package bundled together and defined in index.js and index.d.ts.

FAQs

Package last updated on 01 Feb 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