open-index/open-npm huggingface dataset:
npm package: @financial-times/n-md5-uuid
Description: Generates a MD5 (version 3) name-based UUID with optional namespace.
Latest version: 7.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# n-md5-uuid

[![CircleCI](https://img.shields.io/circleci/project/github/Financial-Times/n-md5-uuid/main.svg)](https://circleci.com/gh/Financial-Times/n-md5-uuid) ![Coveralls Coverage](https://img.shields.io/coveralls/github/Financial-Times/n-md5-uuid/main.svg) [![NPM version](https://img.shields.io/npm/v/@financial-times/n-md5-uuid.svg)](https://www.npmjs.com/package/@financial-times/n-md5-uuid)

👩‍🚀 Generates a MD5 (version 3) name-based UUID with optional namespace.

## Use cases

- Converting an 11 or 13 digit Brightcove video ID to its equivalent content API UUID
- Converting a Base64 encoded TME tag ID to its equivalent content API UUID

## Installation

```sh
# install from NPM
$ npm i -S @financial-times/n-md5-uuid
```

## Usage

This module exports a single method which accepts two arguments:

1. A name
2. An optional namespace

```js
const uuid = require('@financial-times/n-md5-uuid');

const brightcove = uuid('834961745001');
console.log(brightcove); // 564b8be3-0775-3531-b87b-f6da2272f642 ✅

const tme = uuid('MTE2-U2VjdGlvbnM=');
console.log(tme); // 38dbd827-fedc-3ebe-919f-e64cf55ea959 ✅
```