postxml-image-size

0.1.2 • Public • Published

postxml-image-size

npm version

PostXML plugin adds sizes to local images.

Installation

npm i postxml-image-size --save-dev

Usage

Postxml

Options

cwd

Directory of parsing file. It is needed for images' urls.
Type: String
Default: ''

round

Enable rounding sizes
Type: String
Default: true

Example

Input

<img src="image.png">

Output

<img src="image.png" width="255" height="180">

Licence

MIT

Package Sidebar

Install

npm i postxml-image-size

Weekly Downloads

1

Version

0.1.2

License

MIT

Last publish

Collaborators

  • yepninja