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

@hijup/check-header

Package Overview
Dependencies
Maintainers
2
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hijup/check-header

Check if a header name or header value is valid.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

check-header

Check if a header name or header value is valid.

https://tools.ietf.org/html/rfc7230#section-3.2.6

This is a simpler version of node's internal optimized header validation and should stay compatible with it. If the corresponding tests are not updated with node's tests, please open an issue or submit a PR.

install

$ npm install check-header

example

import { validHeaderName, validHeaderValue } from 'check-header'

validHeaderName('foo') // => true
validHeaderName('@@') // => false

validHeaderValue('hey') // => true
validHeaderValue('中文呢') // => false

Keywords

FAQs

Package last updated on 23 Feb 2018

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