Socket
Socket
Sign inDemoInstall

@wmfs/tag-builder

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @wmfs/tag-builder

A simple tag builder which isn't specific to any markup language


Version published
Weekly downloads
2
Maintainers
1
Created
Weekly downloads
 

Readme

Source

tag-builder

A simple tag builder which isn't specific to any markup language

Installation

npm install @wmfs/tag-builder

Examples

const builder = new TagBuilder()

builder.addTag('!doctype html', { includeClosingTag: false })

const html = builder.addTag('html')

html.addChildTag('head').content('HEAD CONTENT')
html.addChildTag('body').content('BODY CONTENT')

const template = builder.compile()
// template will be '<!doctype html><html><head>HEAD CONTENT</head><body>BODY CONTENT</body></html>'

Keywords

FAQs

Last updated on 26 May 2021

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