Socket
Socket
Sign inDemoInstall

pretty

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pretty - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

4

lib/pretty.js

@@ -31,3 +31,5 @@ /*

// Adjust spacing for button > span
.replace(/(<button .+)(.+)(<span.+)(\s*)(<\/button>)/g, '$1>$4 $3$4$5')
.replace(/(<button.+)(<span.+)(\s*)(<\/button>)/g, '$1$3 $2$3$4')
// Adjust spacing for span > input
.replace(/(\s*)(<span.+)(\s*)(<input.+)(\s*)(<\/span>)/g, '$1$2$1 $4$1$6')
// Add a newline for tags nested inside <h1-6>

@@ -34,0 +36,0 @@ .replace(/(\s*)(<h[0-6](?:.+)?>)(.*)(<(?:small|span|strong|em)(?:.+)?)(\s*)(<\/h[0-6]>)/g, '$1$2$3$1 $4$1$6')

{
"name": "pretty",
"description": "Sensible presets and some tweaks for beautifying HTML with js-beautify according to my preferences.",
"version": "0.1.0",
"description": "Some tweaks for beautifying HTML with js-beautify according to my preferences.",
"version": "0.1.1",
"homepage": "https://github.com/jonschlinkert/pretty",

@@ -6,0 +6,0 @@ "author": {

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