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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    3
  • 0.1.0
    1
  • 0.0.2
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i lint-target-blank

Weekly Downloads

6

Version

0.1.1

License

ISC

Last publish

Collaborators

  • williamlacy