Socket
Book a DemoInstallSign in
Socket

sodium-test

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sodium-test

Test harness for Javascript libsodium implementations

latest
Source
npmnpm
Version
0.11.1
Version published
Maintainers
3
Created
Source

sodium-test

Test harness for Javascript libsodium implementations

npm install sodium-test

Usage

require('sodium-test')(require('sodium-native'))

The above will test that sodium-native passes all the sodium-test tests and write results in TAP format to stdio.

API

harness(sodiumApi)

Will run tests on sodiumApi and assert whether it conforms to the libsodium API. Individual subAPI's can be tested, and all follow the same pattern, eg. require('randombytes_buf')(sodiumApi).

Findings are written to stdio.

License

MIT

Keywords

libsodium

FAQs

Package last updated on 14 Jan 2022

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