Skip to content
/ dir2xml Public

generating XML file that represents a directory structure for Nodejs

License

Notifications You must be signed in to change notification settings

hex7c0/dir2xml

Repository files navigation

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

About

generating XML file that represents a directory structure for Nodejs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published