Skip to content

Takeafile/stream-enumerate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status Coverage Status Greenkeeper badge

stream-enumerate

Add a number ID to the chunks in a stream

This module allow to identify the data chunks based on their order inside the stream, or based on their offset.

Install

npm install stream-enumerate

API

enumerate

Identify data chunks consecutively

  • options: options passed to underlying Transform stream
    • end: last ID assigned to data chunks, after it the stream will finish
    • idField: field where the data chunk ID will be stored
    • start: first ID assigned to data chunks

start

Enumerate data chunks based on their offset

  • options: options passed to underlying Transform stream
    • end: last ID/byte assigned to data chunks, after it the stream will finish
    • idField: field where the data chunk ID will be stored
    • start: first ID/byte assigned to data chunks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published