Socket
Socket
Sign inDemoInstall

@rlyle1179/s3-diff

Package Overview
Dependencies
5
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @rlyle1179/s3-diff

Get the diff between a s3-folder and a local folder


Version published
Maintainers
1
Install size
61.0 MB
Created

Readme

Source

s3-diff

Get the diffs between a local file and a s3-folder.

Installation

npm install s3-diff --save

Usage

var s3diff = require('s3-diff');
s3diff({
  aws: {
    // aws-config
  },
  local: __dirname + '/my-folder-that-I-want-to-sync',
  remote: {
    bucket: 'name-of-s3-bucket',
    prefix: 'name/of/folder/to/sync/on/s3'
  },
  // If recursive flag is set to true, s3-diff will recursively diff child
  // folders as well as the top level folder.
  recursive: false
}, function (err, data) {
  // data is an object with the following properties:
  //  changed: Files that have been changed - files that exists in both s3 & locally but are out of sync
  //  extra: Files that exists locally but not in s3
  //  missing: Files that exists in s3 but not locally
  //  keep: Files that exists both in s3 & locally and that are equal
});

Keywords

FAQs

Last updated on 09 May 2019

Did you know?

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc