Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@aws-sdk/util-arn-parser
Advanced tools
The @aws-sdk/util-arn-parser package is a utility library for parsing Amazon Resource Names (ARNs) in JavaScript/TypeScript applications. It is part of the AWS SDK for JavaScript (v3) and is used to extract information from ARNs, which are standardized identifiers for AWS resources.
Parsing ARNs
This feature allows you to parse an ARN string and extract its components, such as the service, region, account ID, and resource details. The parseArn function returns an object with the ARN components.
const { parseArn } = require('@aws-sdk/util-arn-parser');
const arn = 'arn:aws:iam::123456789012:user/Development/product_1234/*';
const parsedArn = parseArn(arn);
console.log(parsedArn);
The aws-arn package is another npm package that provides functionality for parsing and constructing ARNs. It offers similar capabilities to @aws-sdk/util-arn-parser but is not part of the official AWS SDK.
FAQs
A parser to Amazon Resource Names
The npm package @aws-sdk/util-arn-parser receives a total of 2,819,234 weekly downloads. As such, @aws-sdk/util-arn-parser popularity was classified as popular.
We found that @aws-sdk/util-arn-parser demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.