@bonniernews/persistent-hash
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

persistent-hash

Bonnier news library for hashing user_ids.

Usage

const { createPersistentHashedId } = require('@bonniernews/persistent-hash');

or


import { createPersistentHashedId } from '@bonniernews/persistent-hash';

Example

async function hashUserID(id) {
  try {
    const hashedId = await createPersistentHashedId(id);
    return hashedId;
  } catch (error) {
    console.error('Error hashing the user ID:', error);
    throw error;
  }
}

Readme

Keywords

Package Sidebar

Install

npm i @bonniernews/persistent-hash

Weekly Downloads

64

Version

1.4.0

License

ISC

Unpacked Size

2.06 kB

Total Files

5

Last publish

Collaborators

  • oscartholander
  • wisko
  • schristianssonbn
  • marie-winther
  • dan.karlsson
  • erandersson
  • daghall
  • andreas.samuelsson
  • norla
  • mattiasobn
  • jzachrisson
  • hilleso
  • adam.hakansson
  • amundsentb
  • jonaek
  • drgeobn
  • mikael.mattsson
  • morre
  • takolander
  • vitryssen
  • herbola
  • nifo
  • johark
  • aliceboberg
  • varneynz
  • gusliden
  • mxtr
  • karlbergc
  • joelekman
  • chavah
  • matsrorbecker
  • axeljohanssonbonniernews
  • markusn
  • jonaswalden
  • indeedshouts
  • marcusgronblad