npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

dynamo-doc

v0.1.1

Published

a sane and easy-to-use wrapper around AWS DynamoDB document structures

Readme

Build Status

dynamo-doc

An useful converter between js/json objects and the super-boring-strong-typed object structure expected by AWS DynamoDB.

With this module you can just jump into reading and wrinting objects into DynamoDB tables with plain js objects (well, not really, because the queries are also a hell, but take a look at our energy-db module that makes your life easier).

Instalation

If you are reading you know how to install a npm module. Just put it in your dependencies list or install it globally if you are one of those people.

How to use it

Normally you will want to convert a full object. To do that, use the following methods:

var dynamoDoc = require('dynamo-doc');

var json = {
    "some-key": "a string",
    "another-key": 12345
};

dynamoDoc.jsToDynamo(json, function(err, dynamo) {
    if (err) throw err;
    console.log(dynamo); // Outputs the dynamo object bellow
});
var dynamo = {
    "some-key": { "S": "a string" },
    "another-key": { "N": "12345" }
};

dynamoDoc.dynamoToJs(dynamo, function(err, json) {
    if (err) throw err;
    console.log(json); // Outputs the json object above
});

There are also two other methods to convert each individual value type. This can be useful if you want to convert only certain parts, like the expression values on queries and scans. If you think you need this, I suggest you to take a look on the code and the tests, because they are pretty simple and self-explanatory.

Unit tests

This module was TDD'ed. 100% test coverage using mocha+chai. Reading the tests is the best way to learn how to use it and to know what to expect.

Contributing

Fork the repo, create a branch, do awesome additions and submit a pull-request. Only PR's with tests will be considered.

Releases

  • 0.1.1 Bugfix (zero was reporting as boolean)
  • 0.1.0 Initial release