New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

freon-user-agent

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

freon-user-agent

Freon plugin to parse the user agent header

  • 1.0.2
  • Source
  • npm
  • Socket score

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

user-agent

Freon plugin to parse the user agent header

Installation:

npm install user-agent

Usage:

// ... create a Freon application ...

app.plugin(require('user-agent'));

Properties added to the request object

  • userAgent: Object - parsed user agent header

This should be object similar to

{
	ua: "...",
	browser: {
		name: "...",
		version: "..."
	},
	engine: {
		name: "...",
		version: "..."
	},
	os: {
		name: "...",
		version: "..."
	},
	device: {
		model: "...",
		type: "...",
		vendor: "..."
	},
	cpu: {
		architecture: "..."
	}
}

For more information, see the ua-parser-js module.

Keywords

FAQs

Package last updated on 24 Aug 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