New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@parallaxagency/file-modified

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@parallaxagency/file-modified

Detect changed/missing files

  • 2.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-91.67%
Maintainers
1
Weekly downloads
 
Created
Source

Introduction

file-modified (terrible name) compares two directories against each other and outputs a list of files that are missing or modified in the destination directory.

Installation

To install file-modified in a project:

yarn add @parallaxagency/file-modified

Then import it:

import compare from '@parallaxagency/file-modified'

And use it:

import compare from '@parallaxagency/file-modified'

main()

async function main () {
  let files = await compare('./src', './dist')
  console.log(files)
  // returns:
  // {
  //   src: './src',
  //   dest: './dist',
  //   updated: [ 'src/entry.js' ],
  //   missing: [ 'src/entry.js' ],
  //   files: [ 'src/entry.js' ]
  // }
}

Development Setup

To compile JS with babel and watch for changes:

npm run dev

To make a release version:

npm run transpile

To run linters:

npm run lint

It's unlikely you will even have to run the last two commands as they are automatically run when publishing a new version or committing changes.

Todo

  • Add --ignore-dir flag.

FAQs

Package last updated on 04 May 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc