New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

hex-to-array-buffer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hex-to-array-buffer

Turn a string of hexadecimal characters into an `ArrayBuffer`.

latest
Source
npmnpm
Version
2.0.0
Version published
Maintainers
1
Created
Source

hex-to-array-buffer

Turn a string of hexadecimal characters into an ArrayBuffer.

Installation

npm install --save hex-to-array-buffer

Usage

import hexToArrayBuffer from 'hex-to-array-buffer'

const buffer = hexToArrayBuffer('ceae96a325e1dc5dd4f405d905049ceb')

console.log(buffer)
//=> ArrayBuffer { byteLength: 16 }

API

hexToArrayBuffer(input)

  • input (string, required) - specified as a string of hexadecimal characters
  • returns ArrayBuffer - a new ArrayBuffer with the binary content from input

Keywords

ArrayBuffer

FAQs

Package last updated on 24 Jul 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