New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

postxml

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postxml - npm Package Compare versions

Comparing version
0.2.7
to
0.2.9
+1
-1
index.js

@@ -15,3 +15,3 @@ var cheerio = require('cheerio');

var options = {}, $;
options.normalizeWhitespace = options.normalizeWhitespace || true;
options.normalizeWhitespace = options.normalizeWhitespace || false;
options.xmlMode = options.xmlMode || false;

@@ -18,0 +18,0 @@ options.decodeEntities = options.decodeEntities || false;

{
"name": "postxml",
"version": "0.2.7",
"version": "0.2.9",
"description": "Xml transformations",

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

+19
-21
# Postxml
It is a tool for transformating xml and html with JS plugins using [cheerio API](http://cheeriojs.github.io/cheerio/).
It is a tool for transforming html/xml with JS plugins based on [cheerio](http://cheeriojs.github.io/cheerio/).

@@ -14,7 +14,6 @@ ## Instalation

var postxml = require('postxml');
var postxml-plugin = require('postxml-plugin');
var cheerioOptions = {};
var output = postxml([
postxml-plugin(opts)
require('postxml-plugin')(pluginOptions)
])

@@ -26,8 +25,7 @@ .process('<div class="b-block"></div>', cheerioOptions);

### Gulp
`npm i gulp-postxml --save-dev`
Use [`gulp-postxml`](https://github.com/postxml/gulp-postxml)
```js
var postxml = require('gulp-postxml');
var postxmlPlugins = [
require('postxml-plugin')(options)
require('postxml-plugin')(pluginOptions)
];

@@ -51,18 +49,18 @@ var cheerioOptions = {};

### Load(html, cheerioOptions)
Transform html into cheerio object
## Boilerplate for new plugins
* [Plugin Boilerplate](https://github.com/postxml/postxml-plugin-boilerplate)
## Plugins
* [Plugin Boilerplate](https://github.com/postxml/postxml-plugin-boilerplate)
* [postxml-beml](https://github.com/postxml/postxml-beml) - [BEML](https://github.com/zenwalker/node-beml) plugin
* [postxml-custom-tags](https://github.com/postxml/postxml-custom-tags)
* [postxml-image-size](https://github.com/postxml/postxml-image-size) - adds sizes to images
* [postxml-imgalt](https://github.com/postxml/postxml-imgalt)
* [postxml-custom-tags](https://github.com/postxml/postxml-custom-tags)
* [postxml-import](https://github.com/postxml/postxml-import)
* [postxml-import-styles](https://github.com/postxml/postxml-import-styles) - replace `<link>` with `<style>` and import css-code
* [postxml-markdown](https://github.com/postxml/postxml-markdown) - add classes (bem) to `markdown` html tags
* [postxml-ng-valid](https://github.com/postxml/postxml-ng-valid) - replace `ng-` with `data-ng`
* [postxml-placeholder](https://github.com/postxml/postxml-placeholder)
* [postxml-beml](https://github.com/postxml/postxml-beml)
* [postxml-ng-valid](https://github.com/postxml/postxml-ng-valid) - replace `ng-` with `data-ng`
* [postxml-markdown](https://github.com/postxml/postxml-markdown) - add classes (bem) to `markdown` html tags
* [postxml-remove](https://github.com/postxml/postxml-remove) - removes elements by query selectors
* [postxml-repeat](https://github.com/postxml/postxml-remove) - repeat elements
* [postxml-wrap](https://github.com/postxml/postxml-wrap) - wrap with emmet abbreviation
* [postxml-import-styles](https://github.com/postxml/postxml-import-styles) - replace `<link>` with `<style>` and import css-code
* [postxml-image-size](https://github.com/postxml/postxml-image-size) - adds sizes to images
* [postxml-remove](https://github.com/postxml/postxml-remove) - removes elements by query selectors

@@ -73,9 +71,9 @@

* **postxml-template** - added template for postxml-repeat
* **postxml-lazyload** - syntax for lazyload
* **postxml-lodash-template** - anable lodash templates
* **postxml-lazyload** - shortcut syntax for lazyload
* **postxml-prefix** - add prefix to all classes
* **postxml-size** - shortcut width & height
* **postxml-size** - shortcut width & height
* **postxml-variables** - html variables
## Examples of usage postxml in real projects
* http://projects.alanev.ru/apc/apc.dev.zip
* http://projects.alanev.ru/nanopol/nanopol.dev.zip
* http://projects.alanev.ru/wizard/wizard.dev.zip
* http://projects.alanev.ru/apc/apc.dev.zip