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

short-hash-ts

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

short-hash-ts

Get a quick hash that uses the well-liked Bernstein "times 33" hash method and delivers a hex string.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

short-hash-ts

-> Get a quick hash that uses the well-liked Bernstein "times 33" hash method and delivers a hex string.

Installation

Install short-hash-ts using npm:

npm i short-hash-ts

Usage

Creating a hash string
import shorthash from 'short-hash-ts';
OR
var shorthash = require('short-hash-ts');


console.log(shorthash.unique('name'));
// you will get: eQEF

console.log(shorthash.unique('https://younisrahman.com/'));
// you will get: Z10i5MF

console.log(shorthash.unique('The quick brown fox jumps over the lazy dog'));
// you will get: ZI0UJg

console.log(shorthash.unique('আমি বাংলা বলতে পারি'));
// you will get: Z2tKMTX

Keywords

FAQs

Package last updated on 07 Sep 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

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