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

htmlprocessor

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

htmlprocessor - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

lib/htmlprocessor.js

@@ -86,3 +86,3 @@ /*

utils._.each(this.options.customBlockTypes, function (processor) {
require(processor).call(this, this);
require(path.resolve(processor)).call(this, this);

@@ -89,0 +89,0 @@ }, this);

{
"name": "htmlprocessor",
"description": "Process html file using special comments",
"version": "0.1.0",
"version": "0.1.1",
"author": {

@@ -23,2 +23,5 @@ "name": "Denis Ciccale",

],
"scripts": {
"test": "node test/run.js"
},
"main": "./lib/htmlprocessor",

@@ -25,0 +28,0 @@ "bin": {

# htmlprocessor
`npm install -g htmlprocessor`
### Grunt task
This module was originally merged into the [grunt-processhtml](github.com/dciccale/grunt-processhtml) task.
Now its a standalone module without grunt dependency.
For plenty of documentation please visit [grunt-processhtml](github.com/dciccale/grunt-processhtml)
## CLI
```bash
$ htmlprocessor -v
```
Outputs to `file-to-process.processed.html`.
```bash
$ htmlprocessor file-to-process.html
```
Outputs to `processed/file.html`.
```bash
$ htmlprocessor file-to-process.html -o processed/file.html
```
Pass some data
```bash
$ htmlprocessor file-to-process.html -o processed/file.html -d data.json
```
Specify an environment
```bash
$ htmlprocessor file-to-process.html -o processed/file.html -e dev
```
Allow recursive processing
```bash
$ htmlprocessor file-to-process.html -o processed/file.html -r
```
Change the comment marker to `<!-- process --><!-- /process -->`
```bash
$ htmlprocessor file-to-process.html -o processed/file.html --comment-marker process
```
## License
See [LICENSE.txt](https://raw.github.com/dciccale/node-htmlprocessor/master/LICENSE-MIT)
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