Skip to content

SamVerschueren/is-sns-topic-arn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

is-sns-topic-arn Build Status

Check if a string is an AWS SNS Topic ARN

Install

$ npm install --save is-sns-topic-arn

Usage

const isTopicArn = require('is-sns-topic-arn');

isTopicArn('foo');
//=> false

isTopicArn('arn:aws:sns:us-west-2:111122223333:app/GCM/MyTopic');
//=> false

isTopicArn('arn:aws:sns:us-west-2:111122223333:MyTopic');
//=> true

API

isTopicArn(arn)

arn

Type: string

Topic ARN to check.

License

MIT © Sam Verschueren

About

Check if a string is an AWS SNS Topic ARN

Resources

License

Stars

Watchers

Forks

Packages

No packages published