Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

a-rel

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

a-rel

List of link types for `rel` on `a` and `area`

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

a-rel Build Status Coverage Status

List of values viable for use in rel attributes on a (and area) elements, as defined by HTML5 and MicroFormats.

Installation

npm:

npm install a-rel

a-rel is also available as an AMD, CommonJS, and globals module, uncompressed and compressed.

Usage

Dependencies:

var aRel = require('a-rel');

Slicing the first few items:

var head = aRel.slice(0, 10);

Yields:

[ 'acquaintance',
  'alternate',
  'amphtml',
  'appendix',
  'archived',
  'attachment',
  'bookmark',
  'canonical',
  'category',
  'chapter' ]

And, computing length:

var length = aRel.length;

Yields:

69

API

aRel

Array.<string> — List of lower-case possible link types for rel on a and area elements.

License

MIT © Titus Wormer

Keywords

FAQs

Package last updated on 05 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc