Socket
Socket
Sign inDemoInstall

interpolate-es

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    interpolate-es

Dynamically build tagged templates


Version published
Weekly downloads
10
decreased by-50%
Maintainers
1
Install size
7.70 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 23 May 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc