dir2xml

1.4.0 • Public • Published

dir2xml

NPM version Linux Status Windows Status Dependency Status Coveralls

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 dir2xml

or

git clone git://github.com/hex7c0/dir2xml.git

API

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

License GPLv3

Readme

Keywords

Package Sidebar

Install

npm i dir2xml

Weekly Downloads

3

Version

1.4.0

License

GPL-3.0

Last publish

Collaborators

  • hex7c0