Socket
Socket
Sign inDemoInstall

inline-css

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-css - npm Package Compare versions

Comparing version 2.6.3 to 3.0.0

22

package.json
{
"name": "inline-css",
"version": "2.6.3",
"version": "3.0.0",
"description": "Inline css into an html file.",

@@ -9,5 +9,5 @@ "main": "index.js",

"css-rules": "^1.0.9",
"extract-css": "^1.5.4",
"flat-util": "^1.1.1",
"pick-util": "^1.0.1",
"extract-css": "^2.0.0",
"flat-util": "^1.1.6",
"pick-util": "^1.1.3",
"slick": "^1.12.2",

@@ -17,10 +17,10 @@ "specificity": "^0.4.1"

"devDependencies": {
"babel-eslint": "^10.0.3",
"coveralls": "^3.0.9",
"eslint": "^6.8.0",
"lerna": "^3.20.2",
"mocha": "^7.0.0",
"nyc": "^15.0.0",
"babel-eslint": "^10.1.0",
"coveralls": "^3.1.0",
"eslint": "^7.12.0",
"lerna": "^3.22.1",
"mocha": "^8.2.0",
"nyc": "^15.1.0",
"should": "^13.2.3",
"vinyl": "^2.2.0"
"vinyl": "^2.2.1"
},

@@ -27,0 +27,0 @@ "engines": {

@@ -129,22 +129,4 @@ # inline-css [![npm](http://img.shields.io/npm/v/inline-css.svg?style=flat)](https://badge.fury.io/js/inline-css) [![Build Status](https://travis-ci.org/jonkemp/inline-css.svg?branch=master)](https://travis-ci.org/jonkemp/inline-css) [![Coverage Status](https://coveralls.io/repos/jonkemp/inline-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/jonkemp/inline-css?branch=master)

How to resolve hrefs. Must be a string of one character or more. **Required**.
How to resolve hrefs. **Required**.
Relative urls in links will have this value prepended to them. So these links:
* `<a href="page-relative">Page</a>`
* `<a href="/root-relative">Root</a>` <- _note leading /_
With this option:
```js
inlineCss(html, { url: 'http://example.com/mushroom'})
.then(function(html) { console.log(html); });
```
Will result in
* `<a href="http://example.com/mushroom/page-relative">Page</a>`
* `<a href="http://example.com/root-relative">Root</a>`
If you don't need this feature, simply set the property to a short string eg `{url: ' '}` (one space) and everything will work.
#### options.preserveMediaQueries

@@ -151,0 +133,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc