Socket
Socket
Sign inDemoInstall

freon-user-agent

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    freon-user-agent

Freon plugin to parse the user agent header


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
112 kB
Created
Weekly downloads
 

Readme

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

Last updated on 06 Jun 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc