postxml-placeholder
v0.1.2
Published
Postxml plugin for image's placeholder shortcut.
Downloads
7
Maintainers
Readme
postxml-placeholder
PostXML plugin for image's placeholder shortcut (with width and height).
Installation
npm i postxml-placeholder --save-dev
Usage
Example
Input
<img src=":600x400/000/fff.jpg&text=выыва">
Output
<img src="http://dummyimage.com/600x400/000/fff.jpg&text=выыва" width="600" height="400">
options
url
Type: string
Default: http://dummyimage.com/
prefix
Type: string
Default: :
Licence
MIT