Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postxml-imgalt

npm version

PostXML plugin for adding alt attributes to images.

Installation

npm i postxml-imgalt --save-dev

Usage

var fs = require('fs'),
   postxml = require('postxml'),
   plugin = require('postxml-imgalt');

var html = fs.readFileSync('input.html', 'utf8');

var output = postxml(
      html,
      [
         plugin()
      ]
   );

Example

Input

<img src="image.png">

Output

<img src="image.png" alt="">

Licence

MIT

About

Postxml plugin for addding alt attributes to images.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages