NodeJS module/cli that scan a directory of files and generates a CRC32 for each file and outputs them in JSON format.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
MIT-LICENSE.txt
README.md
crc2json.js
index.js
package.json

README.md

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