Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@technik-sde/render

Package Overview
Dependencies
Maintainers
42
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@technik-sde/render

replaces variables within a string

  • 0.6.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
42
Created
Source

render: replaces variables within a string

simple helper to render variables into a string

yarn add @technik-sde/render or npm install @technik-sde/render

Example

import render from "@technik-sde/render";

const message = render("Unknown error {{code}} when requesting article '{{articleId}}'", {
	code: "unknown-gateway-error",
	articleId: "KKejy4VnWKP7WB5wymthtX"
});
// message: "Unhandled error: unknown-gateway-error, when requesting article 'KKejy4VnWKP7WB5wymthtX'"

FAQs

Package last updated on 05 Nov 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc