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

postxml-imgalt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postxml-imgalt

Postxml plugin for adding alt attributes to images.

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

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

Keywords

html

FAQs

Package last updated on 31 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts