Socket
Book a DemoInstallSign in
Socket

jstransformer-posthtml

Package Overview
Dependencies
Maintainers
5
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstransformer-posthtml

PostHTML support for JSTransformers.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
5
Created
Source

jstransformer-posthtml

PostHTML support for JSTransformers.

Build Status Coverage Status Dependency Status NPM version

Installation

npm install jstransformer-posthtml

API

var posthtml = require('jstransformer')(require('jstransformer-posthtml'))
var html = '<myComponent><myTitle>Super Title</myTitle><myText>Awesome Text</myText></myComponent>'
var options = {
  plugins: [
    'posthtml-custom-elements'
  ]
}

posthtml.render(html, options).body
//=> <div class="myComponent"><div class="myTitle">Super Title</div><div class="myText">Awesome Text</div></div>

License

MIT

Keywords

jstransformer

FAQs

Package last updated on 14 Nov 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