Based on this blogpost.
Install with Homebrew:
$ brew install postgresqlRun server:
Based on this blogpost.
Install with Homebrew:
$ brew install postgresqlRun server:
| const maskDate = value => { | |
| let v = value.replace(/\D/g,'').slice(0, 10); | |
| if (v.length >= 5) { | |
| return `${v.slice(0,2)}/${v.slice(2,4)}/${v.slice(4)}`; | |
| } | |
| else if (v.length >= 3) { | |
| return `${v.slice(0,2)}/${v.slice(2)}`; | |
| } | |
| return v | |
| } |
| var AWS = require('aws-sdk'); | |
| AWS.config.update({ | |
| accessKeyId: '{AWS_KEY}', | |
| secretAccessKey: '{AWS_SECRET}', | |
| region: '{SNS_REGION}' | |
| }); | |
| var sns = new AWS.SNS(); |