Socket
Book a DemoInstallSign in
Socket

lambda-dynamodb-highlightjs

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-dynamodb-highlightjs

AWS Labmda function to apply highlight.js on dynamodb updates

1.0.2
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

AWS Lambda DynamoDB Highlight.js

It's a lambda function that is triggered whenever a dynamodb table gets new record or an existing record is updated.

It processes content column with Highlight.js expecting code blocks to be wrapped with <pre><code class="xxx">, and then puts the processed record in blog table.

The function shouldn't be triggered by the same blog table or it will run indefinitely.

Lambda config

  • Runtime: Node.js 4.3
  • Handler: index.handler

Best to start from dynamodb-process-stream blueprint and then add dynamodb:BatchWriteItem permission to the created role

Keywords

aws

FAQs

Package last updated on 10 Dec 2016

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.