Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rust-change-detection

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rust-change-detection

A files change detection tool written in Rust

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
20
increased by17.65%
Maintainers
0
Weekly downloads
 
Created
Source

rust-change-detection

Change detection library written is rust, using file hashes to detect changes in files and directories. Using gxhash for hashing files

Usage

  1. Install the package
yarn add rust-change-detection --dev

or

npm install rust-change-detection --save-dev
  1. Set environment variable
export RCD_FOLDERS=./packages
  1. Add rcd to your package.json scripts
{
  "scripts": {
    "rcd": "rcd"
  }
}
  1. Run the command
yarn rcd
  1. You can find the logs in the .rcd_log file

Tips

  • You can create a .env file in the root of your project and add the RCD_FOLDERS variable there.
  • And load the .env file before running the command, using a package like dotenv-cli or cross-env or env-cmd.
{
  "scripts": {
    "rcd": "env-cmd .env rcd"
  }
}

Environment Variables

VariableDescriptionDefaultRequired
RCD_FOLDERSThe folders to watch for changesnonetrue
RCD_IGNORE_FOLDERThe folders to ignore with ; as separatornode_modules;dist;.git;coverage;.turbofalse
RCD_IGNORE_FILEThe files to ignore with ; as separator.gitignore;.prettierrc;.eslintrc;.babelrc;.DS_Store;Thumbs.dbfalse
RCD_HASH_FILEThe file to store the hashes.rcd_hashfalse
RCD_LOG_FILEThe file to store the logs, i.e the list of changed files.rcd_logfalse
RCD_LOG_LEVELThe log level, can be info or debuginfofalse

License

MIT

Keywords

FAQs

Package last updated on 12 Nov 2024

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