Socket
Socket
Sign inDemoInstall

@shelf/aws-sns-message-attributes

Package Overview
Dependencies
0
Maintainers
56
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @shelf/aws-sns-message-attributes

Transform JSON into AWS SNS message attributes format


Version published
Weekly downloads
5.2K
increased by1.65%
Maintainers
56
Install size
6.05 kB
Created
Weekly downloads
 

Readme

Source

aws-sns-message-attributes CircleCI npm (scoped)

Transform JSON into AWS SNS message attributes format. See 1, 2

Install

$ yarn add @shelf/aws-sns-message-attributes

Usage

const {transformMessageAttributes} = require('@shelf/aws-sns-message-attributes');

transformMessageAttributes({
  string: 'hello',
  array: ['hello', 'world'],
  number: 1,
  bool: true,
});

/*
{
  string: {DataType: 'String', StringValue: 'hello'},
  array: {DataType: 'String.Array', StringValue: '["hello","world"]'},
  number: {DataType: 'Number', StringValue: 1},
  bool: {DataType: 'String', StringValue: 'true'},
}
 */

Note: This library does not support binary values

Publish

$ git checkout master
$ yarn version
$ yarn publish
$ git push origin master --tags

License

MIT © Shelf

Keywords

FAQs

Last updated on 20 Jun 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc