On this page

Attributes
new PrefixSource(prefix, source): PrefixSource
Attributes
prefix:<string>
source:
{string|Buffer |Source}
buffer(): Buffer
Returns:
{Buffer}

getPrefix(): string
Returns:<string>

map(options?): void
  • options {MapOptions}
  • Returns: <null>

original(): Source
Returns:<Source>

size(): number
Returns:<number>

source(): SourceValue
Returns:
{SourceValue}

sourceAndMap(options?): void
  • options {MapOptions}
  • Returns: {SourceAndMap}

streamChunks(options, onChunk, onSource, onName): void

updateHash(hash): void
  • hash {HashLike}
  • Returns: {void}