Socket
Socket
Sign inDemoInstall

htmlfy

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlfy - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

65

package.json
{
"name": "htmlfy",
"version": "0.2.1",
"description": "HTML formatter yo!. Prettify, minify, and more!",
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./src/exports/index.js"
}
},
"files": [
"src",
"types"
],
"devDependencies": {
"typescript": "^5.0.0"
},
"types": "types/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/j4w8n/htmlfy.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/j4w8n/htmlfy/issues"
},
"homepage": "https://github.com/j4w8n/htmlfy#readme",
"scripts": {
"check": "tsc",
"test": "bun index.js"
}
}
"name": "htmlfy",
"version": "0.3.0",
"description": "HTML formatter yo!. Prettify, minify, and more!",
"scripts": {
"check": "tsc",
"test": "bun index.js"
},
"exports": {
".": {
"types": "./types/index.d.ts",
"import": "./src/exports/index.js",
"require": "./src/exports/index.js"
}
},
"files": [
"src",
"types"
],
"devDependencies": {
"typescript": "^5.0.0"
},
"types": "types/index.d.ts",
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/j4w8n/htmlfy.git"
},
"license": "MIT",
"bugs": {
"url": "https://github.com/j4w8n/htmlfy/issues"
},
"homepage": "https://github.com/j4w8n/htmlfy#readme"
}

@@ -8,4 +8,4 @@ # htmlfy

- Converted to ESM.
- Configuration options.
- A lot of naming changes.
- Added configuration options.
- Refactored the code, including naming changes.

@@ -17,2 +17,3 @@ ## Install

## API
Most projects will only need to use `prettify` and/or `minify`.

@@ -55,2 +56,4 @@ ### Prettify

### Closify
> This is done when using prettify, but you can use it in a one-off scenario if needed.
Ensure [void elements](https://developer.mozilla.org/en-US/docs/Glossary/Void_element) are "self-closing".

@@ -69,2 +72,4 @@

### Entify
> This is done when using prettify, but you can use it in a one-off scenario if needed.
Enforce entity characters for textarea content. This also performs basic minification on textareas before setting entities. When running this function as a standalone, you'll likely want to pass `minify` as `true` for full minification of the textarea. The minification does not process any other tags.

@@ -98,2 +103,9 @@

### Common JS Import
Although meant to be an ESM module, you can import using `require`.
```js
const { prettify } = require('htmlfy')
```
## Configuration

@@ -100,0 +112,0 @@ These configuration options can only be passed to `prettify`.

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