lint-target-blank

0.1.1 • Public • Published

Lint target blank

A node module that reports the target="_blank" vulnerability.

Follow this blog for a description of the vulnerability.

Usage

 
    const LintTargetBlank = require('lint-target-blank');
    const lintTargetBlank = new LintTargetBlank({});
    const errors = lintTargetBlank.lint(`
    <div>
      <a href="somewhere.com" target="_blank"></a>
    </div>
    `)

Development

To get the dependencies and test the project, execute the following:

    $ npm install
    $ npm test

Package Sidebar

Install

npm i lint-target-blank

Weekly Downloads

1

Version

0.1.1

License

ISC

Last publish

Collaborators

  • williamlacy