Skip to content

Instantly share code, notes, and snippets.

@kevbook
Created February 19, 2018 17:00
Show Gist options
  • Save kevbook/bd4f6e7108b014c782c19f26c9870de8 to your computer and use it in GitHub Desktop.
Save kevbook/bd4f6e7108b014c782c19f26c9870de8 to your computer and use it in GitHub Desktop.
aws dyanmodb
Thanks James, this looks great. Let me lay out a few ground rules that we follow for all node modules at Knock
1. nodev6 (since aws lambda doesn’t support v8, yet)
2. General modules we use @knock - got(http), ava(testing), lodash, aws-sdk
3. Typical function signature is usually, there are exceptions but we tend to keep things consistent
```js
/**
* @param arg1 (Required)
* @param {Object} optionalArgs (Optional, if need be)
* @param {Function} cb (Optional or Promise returned)
*/
function(arg1, optionalArgs, optionalArgs2, cb)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment