Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Install

npm i lint-target-blank

DownloadsWeekly Downloads

0

Version

0.1.1

License

ISC

Last publish

Collaborators

  • avatar