This package has been deprecated

Author message:

Moved to @vanillaes/interpolate

interpolate-es
TypeScript icon, indicating that this package has built-in type declarations

1.3.5 • Public • Published

Interpolate-ES

A small, easy-to-use template literal builder. Good for loading template literal strings from external sources.

GitHub Releases NPM Release Bundlephobia MIT License Latest Status Release Status

features

  • ECMAScript Module
  • CommonJS Bundle Included
  • Typescript Compatible
  • Tiny Footprint (1K)

Installation

npm install interpolate-es
import Interpolate from 'interpolate-es';

Interpolate()

Builds a string from a template string + tags collection.

Arguments

Interpolate(template, {tags})

  • template - the template literal string
  • tags - the tagged values in the template

CommonJS

A .cjs bundle is included for CommonJS compatibility

const Interpolate = require('interpolate-es');

Typings

Typings are generated from JSDoc using Typescript. They are 100% compatible with VSCode Intellisense and will work seamlessly with Typescript.

Package Sidebar

Install

npm i interpolate-es

Weekly Downloads

27

Version

1.3.5

License

MIT

Unpacked Size

7.88 kB

Total Files

8

Last publish

Collaborators

  • evanplaice