The `aws-arn-parser` package (version 1.0.1) offers a basic utility for parsing Amazon Resource Name (ARN) strings into a structured JavaScript object. It extracts common ARN components such as service, region, account ID, and resource identifier. The project's initial README explicitly stated it was in "early days," indicating a lack of robust validation and potential for future structural changes. It is a simple, dependency-free parser primarily for Node.js environments. The package under this specific name appears to be effectively unmaintained or abandoned, with no discernible release cadence. Developers are advised to consider actively maintained and more robust alternatives, such as `@aws-sdk/util-arn-parser` from the official AWS SDK, or potentially the re-scoped `@sandfox/arn` by the same author, which provides TypeScript support and a revised output structure.
npm install aws-arn-parserVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to use the `aws-arn-parser` package to parse two different types of AWS ARN strings into their constituent parts, printing the resulting object.
Migrate to a maintained ARN parser such as `@aws-sdk/util-arn-parser` from the official AWS SDK v3, or `@sandfox/arn` if its API matches your needs.
Implement custom validation logic before passing strings to the parser, or use a more robust ARN parsing library that includes validation.
Be aware of the specific output structure and adapt your code accordingly. If migrating to a newer parser, expect to update how you access ARN components.
Ensure you are using the correct CommonJS `require` syntax for a default function export: `const parser = require('aws-arn-parser');`Refer to the `aws-arn-parser` v1.0.1 documentation for its specific output format. If you need the newer structure, migrate to the corresponding package.
No dependency data recorded yet.