is-aws-account-id
Version:
Check if a string is an AWS Account ID
29 lines (16 loc) • 577 B
Markdown
> Check if a string is an [AWS Account ID](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
```
$ npm install --save is-aws-account-id
```
```js
const isAwsAccountId = require('is-aws-account-id');
isAwsAccountId('123456789012');
//=> true
isAwsAccountId('abc123456789');
//=> false
```
MIT © [Sam Verschueren](https://github.com/SamVerschueren)