1.4.0 • Published 1 year ago

@bonniernews/persistent-hash v1.4.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

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;
  }
}
1.4.0

1 year ago

1.3.0

1 year ago

1.2.0

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago