1.1.6 • Published 4 years ago

uuid-stream v1.1.6

Weekly downloads
12
License
SEE LICENSE IN LI...
Repository
github
Last release
4 years ago

UUID Stream

A Transform stream that generates RFC-compliant UUID v5.

Installation

npm install uuid-stream

Usage

const UuidStream = require('uuid-stream');
const stream = new UuidStream();
const readstream = getReadStreamSomehow();

let result = null;
stream
  .on('error', e => {
    reject(e);
  })
  .on('uuid', data => {
    result = data.toString();
  })
  .on('data', data => {
    // data passes through if you need to do more!
  })
  .on('finish', () => {
    resolve(result);
  });
readstream.pipe(stream);

Just like node-uuid for uuid v5, but removed the need to have all contents in-memory to be compatible with streams.

1.1.6

4 years ago

1.1.5

4 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago