wrap-with-html

0.0.2 • Public • Published

Wrap With HTML

Wrap strings with HTML

Install

$ npm install --save wrap-with-html

Usage

var wrapWithHTML = require('wrap-with-html');

wrapWithHTML({
  string: "Hello World",
  customId: "hello-word",
  tagName: "span",
  customClass: "underline"
})
//=> <span id='hello-world' class='underline'>Hello World</span>

Test

$ npm test

Readme

Keywords

none

Package Sidebar

Install

npm i wrap-with-html

Weekly Downloads

4

Version

0.0.2

License

MIT

Last publish

Collaborators

  • joegesualdo