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

fnv32

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fnv32

FNV (Fowler–Noll–Vo) 32 bit hash function - FNV-1, FNV-1a.

latest
Source
npmnpm
Version
0.0.1
Version published
Weekly downloads
53
29.27%
Maintainers
1
Weekly downloads
 
Created
Source

fnv32

build status NPM version node version

FNV (Fowler–Noll–Vo) 32 bit hash function: FNV-1, FNV-1a.

References: https://tools.ietf.org/html/draft-eastlake-fnv-12, https://en.wikipedia.org/wiki/Fowler%E2%80%93Noll%E2%80%93Vo_hash_function

Installation

npm install fnv32

Example

const fnv32 = require('fnv32');

var hashed = fnv32.fnv_1a( 'hello' );  // input Buffer or String.
console.log('hashed number: ' + hashed);  // unsigned 32 bit integer.

// functions: .fnv_1( Buffer|String ), .fnv_1a( Buffer|String ), .toBufferLE( Number )

Test

npm test

License

Choose either: MIT or Apache 2.0.

Keywords

fnv32

FAQs

Package last updated on 01 Jun 2017

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