@tractorzoom/dynamo-utils

    2.4.87 • Public • Published

    @tractorzoom/dynamo-utils

    Commitizen friendly jest Prettier Renovate enabled semantic-release

    Available Methods

    Method: docClient(method, params)
    parameter type description
    method string any valid dynamo document client method
    params object object params accepted by the corresponding dynamo document client method

    How do I use? 🤔

    Installation:
    npm i @tractorzoom/dynamo-utils
    Usage:
    import { docClient } from '@tractorzoom/dynamo-utils';
    
    export const putHandler = async () => {
        const params = {
            Table: 'MyTable',
            Item: { key: 'super awesome item' },
        };
    
        const response = await docClient('put', params);
    
        if (response.error) {
            return internalServerError(response.error);
        }
    
        return ok(response);
    };

    Install

    npm i @tractorzoom/dynamo-utils

    DownloadsWeekly Downloads

    481

    Version

    2.4.87

    License

    MIT

    Unpacked Size

    24.7 kB

    Total Files

    22

    Last publish

    Collaborators

    • tractorzoom