Generating XML file or JSON object that represents a sync directory structure, with memoization and others customizations
my original python code
Install through NPM
npm install dir2xml
or
git clone git://github.com/hex7c0/dir2xml.git
inside nodejs project
var dir = require('dir2xml');
dir('node_modules');
root
- String Directory path (default "required")
exclude
- RegExp Regular expression for files/dirs exclude (default "disabled")dotfiles
- Boolean Flag for hide dotfiles (default "enabled")cache
- Boolean Flag for using cache (depends from mtime dir) (default "enabled")json
- Boolean Flag for display json object instead of xml string (default "disabled")hash
- String | false Set your hashes or disable (default "md5")
Take a look at my examples