add-link-rel-cli
v1.1.0
Published
CLI to add some attributes on html <a> tags.
Downloads
2
Readme
add-link-rel-cli
CLI to add some attributes on html <a>
tags.
Installation
npm i add-link-rel-cli
Usage
Usage: add-link-rel [options] <filename>
Arguments:
filename html filename to correct
Options:
-a, --autofix
--noreferrer
--noopener
--only-target-blank
-h, --help display help for command
Example
sample.html
<a target="_blank"><li>Sample Link</li></a>
$ add-link-rel --noreferrer --noopener test.html
<a target="_blank" rel="noreferrer noopenner"><li>Sample Link</li></a>