On this page

Attributes
new ReplaceSource(source, name?): ReplaceSource
Attributes
source:<Source>
  • Replacement {Replacement}
buffer(): Buffer
Returns:
{Buffer}

getName(): string | undefined

getReplacements(): Replacement[]
Returns:
{Replacement[]}

insert(pos, newValue, name?): void
Attributes
newValue:<string>
Returns:
{void}

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

original(): Source
Returns:<Source>

replace(start, end, newValue, name?): void
Attributes
start:<number>
newValue:<string>
Returns:
{void}

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}