0.1.1 • Published 6 years ago

lint-target-blank v0.1.1

Weekly downloads
19
License
ISC
Repository
github
Last release
6 years ago

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