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

@api-components/http-method-label

Package Overview
Dependencies
Maintainers
4
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-components/http-method-label

A HTTP method name display label for lists

  • 3.1.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
395
increased by29.51%
Maintainers
4
Weekly downloads
 
Created
Source

DEPRECATED

This component is being deprecated. The code base has been moved to amf-components module. This module will be archived when PR 1 is merged.


Published on NPM

Tests and publishing

An HTTP method name display label for lists.

<http-method-label method="get"></http-method-label>
<http-method-label method="POST"></http-method-label>
<http-method-label method="Put"></http-method-label>
<http-method-label method="delete"></http-method-label>
<http-method-label method="patch"></http-method-label>

Usage

Installation

npm install @api-components/http-method-label --save

In an html file

<html>
  <head>
    <script type="module">
      import '@api-components/http-method-label/http-method-label.js';
    </script>
  </head>
  <body>
    <http-method-label method="get"></http-method-label>
  </body>
</html>

In a web component element

import { LitElement, html, css } from 'lit-element';
import '@api-components/http-method-label/http-method-label.js';

class SampleElement extends PolymerElement {
  static get template() {
    return html`
    <http-method-label method="get"></http-method-label>
    `;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/http-method-label
cd http-method-label
npm install

Running the demo locally

npm start

Running the tests

npm test

Keywords

FAQs

Package last updated on 09 Oct 2021

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