Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@slay-pics/signature

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slay-pics/signature

[![npm version][npm-version-src]][npm-version-href] [![npm downloads][npm-downloads-src]][npm-downloads-href] [![bundle][bundle-src]][bundle-href] [![Codecov][codecov-src]][codecov-href]

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by400%
Maintainers
1
Weekly downloads
 
Created
Source

@slay-pics/signature

npm version npm downloads bundle Codecov

Simple function to validate/verify a HMAC of a JS object with a secret.

Usage

Install package:

# npm
npm install @slay-pics/signature

# yarn
yarn add @slay-pics/signature

# pnpm
pnpm install @slay-pics/signature

# bun
bun install @slay-pics/signature

Use:

// ESM
import { calcSig } from "@slay-pics/signature";

// CommonJS
const { calcSig } = require("@slay-pics/signature");

const sig = calcSig({ some: 'object', with: 'props' }, process.env.YOUR_SECRET);

License

Published under MIT License.

FAQs

Package last updated on 30 Mar 2024

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