Socket
Socket
Sign inDemoInstall

crc2json

Package Overview
Dependencies
5
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    crc2json

Scan a directory of files and generates a CRC32 for each file and outputs them in JSON format.


Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Install size
184 kB
Created
Weekly downloads
 

Readme

Source

crc2json

Scan a directory of files and generates a CRC32 for each file and outputs them in JSON format.

CLI install and usage

npm install -g crc2json

To scan the current directory and write to list.json

crc2json -o list.json

Get help for other flags

crc2json -h

As a node module

npm install crc2json --save

Using callback function example:


var crc2json = require('crc2json')

crc2json(process.cwd(), function(map){
	console.log(map)
})

Using EventEmitter example:


var EventEmitter = require('events').EventEmitter
var event        = new EventEmitter

event.on('crc', function(filename, crc) {
 ...
})

event.on('complete', function(){ ... })

crc2json(process.cwd(), event)

License MIT

Keywords

FAQs

Last updated on 20 Sep 2013

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