![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
npm-config-user-agent-parser
Advanced tools
npm
and yarn
have a user agent string that contains version information.
This npm module parses the string into an object that is easily consumed on the
command-line or in JavaScript using the Node API.
An example of npm
's user agent on a Macbook Pro:
npm/6.1.0 node/v8.9.4 darwin x64
and an example of yarn
's on the same machine:
yarn/1.7.0 npm/? node/v8.9.4 darwin x64
$ npm install npm-config-user-agent-parser
$ npm-config-user-agent-parser 'yarn/1.7.0 npm/? node/v8.9.4 darwin x64'
yarn 1.7.0
node 8.9.4
platform darwin
arch x64
raw yarn/1.7.0 npm/? node/v8.9.4 darwin x64
const parser = require('npm-config-user-agent-parser');
const parsed = parser(process.env.npm_config_user_agent);
console.log(parsed);
Outputs:
{
"yarn": {
"raw": "1.7.0",
"major": 1,
"minor": 7,
"patch": 0,
"prerelease": [],
"build": [],
"version": "1.7.0"
},
"npm": null,
"node": {
"raw": "8.9.4",
"major": 8,
"minor": 9,
"patch": 4,
"prerelease": [],
"build": [],
"version": "8.9.4"
},
"platform": "darwin",
"arch": "x64",
"raw": "yarn/1.7.0 npm/? node/v8.9.4 darwin x64"
}
FAQs
Parser for process.env.npm_config_user_agent
The npm package npm-config-user-agent-parser receives a total of 631 weekly downloads. As such, npm-config-user-agent-parser popularity was classified as not popular.
We found that npm-config-user-agent-parser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.