1.4.0 • Published 8 years ago
dir2xml v1.4.0
dir2xml
Generating XML file or JSON object that represents a sync directory structure, with memoization and others customizations
my original python code
Installation
Install through NPM
npm install dir2xmlor
git clone git://github.com/hex7c0/dir2xml.gitAPI
inside nodejs project
var dir = require('dir2xml');
dir('node_modules');dir(root , options)
root
root- String Directory path (default "required")
options
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")
Examples
Take a look at my examples