Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inline-source

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-source - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

5

index.js
var path = require('path')
, fs = require('fs')
, uglify = require('uglify-js')
, CleanCSS = require('clean-css')
, csso = require('csso')
, RE_INLINE_SOURCE = /^\s*?(<script.*?\sinline.*?[^<]+<\/script>)/gm

@@ -60,3 +61,3 @@ , RE_INLINE_HREF = /^\s*?(<link.*?\sinline[^>]*>)/gm

filecontent = isCSS
? new CleanCSS().minify(filecontent)
? csso.justDoIt(filecontent)
: uglify.minify(filecontent, {fromString: true}).code;

@@ -63,0 +64,0 @@ } catch (err) { }

4

package.json
{
"name": "inline-source",
"description": "Inline all flagged js & css source files",
"version": "0.4.0",
"version": "0.4.1",
"author": "popeindustries <alex@pope-industries.com>",

@@ -9,3 +9,3 @@ "keywords": ["inline", "html", "js", "css"],

"uglify-js": "2.4.13",
"clean-css": "2.1.0"
"csso": "1.3.11"
},

@@ -12,0 +12,0 @@ "devDependencies": {

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