New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

plug-templates

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plug-templates

a string templater.

latest
npmnpm
Version
1.0.3
Version published
Weekly downloads
3
50%
Maintainers
1
Weekly downloads
 
Created
Source

plug

straight forward string templates

example usage

app

#!/usr/bin/env node

let plugs = require('plug-templates');

console.log('plugs-test');
let template = `
export class ~component~Component {
  private ~myProp~;
  }
`

let myPlugs = {
  component: 'MyLayout',
  myProp: 'height = 5'
}

let pluggedTemplate = plugs.plug(template, myPlugs);

console.log(pluggedTemplate);

output:

export class MyLayoutComponent {
  private height = 5;
  }

FAQs

Package last updated on 12 Sep 2016

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