stiletto
stylesheet inliner
Last updated 4 years ago by taniguchi .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install stiletto 
SYNC missed versions from official npm registry.

Stiletto

Given HTML, stiletto will inline your CSS properties into the style attribute.

Installation

$ npm i stiletto

Usage

import * as stiletto from "stiletto"
const html = "<p> ... </p>"
const css = "p { color: red }"
console.log(stiletto.inline(html, css))
// <p style="color:red;">...</p>

Copyright and License

Copyright (c) 2022 TANIGUCHI Masaya. All rights reserved. This package is released under MIT License. https://git.io/mit-license

Current Tags

  • 0.6.0                                ...           latest (4 years ago)

11 Versions

  • 0.6.0                                ...           4 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.1                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.1                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 0
Dependencies (4)
Dev Dependencies (2)
Dependents (1)

Copyright 2013 - present © cnpmjs.org | Home |