AWS ARN parser and utilities for Node.js and browser. Current stable version 2.1.2, released as a TypeScript rewrite in v2.0.0. Parses ARN strings into structured objects, supports creating ARNs from components, and formatting back to strings. Lightweight with no external dependencies. Differentiates from alternatives (e.g., @aws-sdk/util-arn-parser) by providing a fluent API, broader resource part parsing (including qualifiers), and optional strict mode with error throwing.
npm install aws-arnNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates parsing, creating, formatting ARNs, and accessing resource parts with strict mode.
Update code to handle Arn | null or pass true as second argument to throw.
Migrate to V2 and use strict mode or check for null.
Access `resource` after parsing only; when constructing, use `resourcePart` string.
Use `import Arn from 'aws-arn'` or `const { default: Arn } = require('aws-arn')`.Pass true as second argument: Arn.parse(arnStr, true) or check for null.
No dependency data recorded yet.