JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 823
  • Score
    100M100P100Q112901F
  • License BSD-2-Clause

Intercept Iterable string - backbone for templates

Package Exports

  • iterable-string-interceptor

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iterable-string-interceptor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

npm Greenkeeper semantic-release styled with prettier Build Status codecov.io Coverage Status Known Vulnerabilities GitHub Issues Stories in Ready Dependency Status devDependency Status docs XO code style downloads Commitizen friendly

iterable-string-interceptor

Intercept Iterable string - backbone for templates

import { iterableStringInterceptor } from "iterable-string-interceptor";
import { createReadStream } from "fs";

iterableStringInterceptor(createReadStream('aFile',{ encoding:"utf8"}),
async * (expression) => { yield expression * 2; }
)

API

Table of Contents

ExpressionTransformer

Type: ()

Parameters

Returns Iterable<string> transformed source

EarlyConsumerCallback

will be called from the ExpressionTransformer if the given remainder needs to be altered

Type: ()

Parameters

iterableStringInterceptor

intercept into a async iterable string source detecting lead in/outs like '{{' and '}}' and asking a transformer for a replacement iterable string

Parameters

Returns Iterable<string> transformed source

install

With npm do:

npm install iterable-string-interceptor

license

BSD-2-Clause