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 🙏

© 2024 – Pkg Stats / Ryan Hefner

dynamoman

v0.2.12

Published

Utility to export and import AWS dynamoDB

Downloads

3

Readme

dynamoman - The Perfect AWS DynamoDB Manager

Version Downloads Node MIT License

Dynamoman is the perfect cli too to export and import data from AWS DynamoDB tables.

It stores the data in the native DynamoDB Json format, so nothing is lost while importing.


████████    █████    ██ █████ ███    ███ ██████ ███    ███ █████ ███    ██
██   ████  ██ ████   ████   ██████  ██████    ██████  ██████   ██████   ██
██   ██ ████  ██ ██  ███████████ ████ ████    ████ ████ ███████████ ██  ██
██   ██  ██   ██  ██ ████   ████  ██  ████    ████  ██  ████   ████  ██ ██
██████   ██   ██   ██████   ████      ██ ██████ ██      ████   ████   ████

Features

  • Easily export the dynamoDB table as JSON
  • Imports the data into any dynamoDB table
  • Export from one region and import in to another
  • Supports batch import (chunks of 25 records)
  • Supports Windows / Linux / Mac

Installation

You can use npm / yarn to install the cli

  npm install -g  dynamoman

To verify the Installation

  dynamoman --help

Documentation

Getting started

To get all details of the CLI use the help option

dynamoman --help

This will show a help screen

Usage: dynamoman [options] [command]

CLI to manage AWS DynamoDB Import & Export

Options:
  -V, --version             display version
  -h, --help                display help for command

Commands:
  export [options]          export data from an AWS DynamoDB table as JSON file
  import [options]          import data into an AWS DynamoDB table from a JSON file
  help [options] [command]  display help for command

To view the help of a particular command use

dynamoman <command> --help

eg:

dynamoman export --help


Usage: dynamoman export [options]

export data from an AWS DynamoDB table as JSON file

Options:
  --region <aws_region>    Provide the AWS region if you want to overwrite the default one
  --log <log_level>        Log Level to user (choices: "Info", "Debug", "Trace", default: "Info")
  --force                  Forces any confirmation to default yes and proceed
  --file <target_file>     target json file
  --table <table>          Table to export
  --comment <description>  Any comments to include in the export (default: "")
  -h, --help               display help for command

Configure AWS

It is a prerequisite that you should configure the aws using the aws cli configure command

aws configure

Using this command setup the access key id and secret access key.

You can also setup the default region during this step.

Export a table

Inorder to export a table you can use the following command

dynamoman export --file output.json --table <mytable>

Export options are

| Option | Description | | ----------------------- | ---------------------------------------------------------------------- | | --region <aws_region> | Provide the AWS region if you want to overwrite the default one | | --log <log_level> | Log Level to user (choices: "Info", "Debug", "Trace", default: "Info") | | --force | Forces any confirmation to default yes and proceed | | --file <target_file> | Target json file | | --table <table_name> | Table to export | | --comment | Any comments to include in the export (default: "") |

Import a table

Inorder to import a table you can use the following command

dynamoman import --file table_dump.json --table <mytable>

Import options are

| Option | Description | | --------------------- | ---------------------------------------------------------------------- | | --region <aws_region> | Provide the AWS region if you want to overwrite the default one | | --log <log_level> | Log Level to user (choices: "Info", "Debug", "Trace", default: "Info") | | --file <target_file> | Source json file | | --table <table_name> | Table to import |

Verify the exported JSON file

Inorder to verify an exported json file use the following command

dynamoman verify --file table_dump.json

Verify options are

| Option | Description | | -------------------- | ---------------------------------------------------------------------- | | --log <log_level> | Log Level to user (choices: "Info", "Debug", "Trace", default: "Info") | | --file <target_file> | source json file |

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Roadmap

  • Export all tables to a zip
  • Import all tables from a zip

Feedback

If you have any feedback, please reach out to us at [email protected]