{"id":21905389,"url":"https://github.com/hex7c0/dir2xml","last_synced_at":"2026-04-17T15:03:49.790Z","repository":{"id":19994092,"uuid":"23261395","full_name":"hex7c0/dir2xml","owner":"hex7c0","description":"generating XML file that represents a directory structure for Nodejs","archived":false,"fork":false,"pushed_at":"2023-04-15T21:58:02.000Z","size":180,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T07:28:49.620Z","etag":null,"topics":["nodejs","xml"],"latest_commit_sha":null,"homepage":"https://github.com/hex7c0/dir2xml","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hex7c0.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-08-23T17:07:13.000Z","updated_at":"2017-12-30T13:16:14.000Z","dependencies_parsed_at":"2024-11-28T16:44:03.150Z","dependency_job_id":null,"html_url":"https://github.com/hex7c0/dir2xml","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fdir2xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fdir2xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fdir2xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hex7c0%2Fdir2xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hex7c0","download_url":"https://codeload.github.com/hex7c0/dir2xml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244918710,"owners_count":20531686,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nodejs","xml"],"created_at":"2024-11-28T16:33:08.356Z","updated_at":"2026-04-17T15:03:49.741Z","avatar_url":"https://github.com/hex7c0.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [dir2xml](https://github.com/hex7c0/dir2xml)\n\n[![NPM version](https://img.shields.io/npm/v/dir2xml.svg)](https://www.npmjs.com/package/dir2xml)\n[![Linux Status](https://img.shields.io/travis/hex7c0/dir2xml.svg?label=linux-osx)](https://travis-ci.org/hex7c0/dir2xml)\n[![Windows Status](https://img.shields.io/appveyor/ci/hex7c0/dir2xml.svg?label=windows)](https://ci.appveyor.com/project/hex7c0/dir2xml)\n[![Dependency Status](https://img.shields.io/david/hex7c0/dir2xml.svg)](https://david-dm.org/hex7c0/dir2xml)\n[![Coveralls](https://img.shields.io/coveralls/hex7c0/dir2xml.svg)](https://coveralls.io/r/hex7c0/dir2xml)\n\nGenerating XML file or JSON object that represents a sync directory structure, with memoization and others customizations\n\nmy original [python code](https://github.com/hex7c0/Dir2Xmlpy)\n\n## Installation\n\nInstall through NPM\n\n```bash\nnpm install dir2xml\n```\nor\n```bash\ngit clone git://github.com/hex7c0/dir2xml.git\n```\n\n## API\n\ninside nodejs project\n```js\nvar dir = require('dir2xml');\n\ndir('node_modules');\n```\n\n### dir(root [, options])\n\n#### root\n\n - `root`- **String** Directory path *(default \"required\")*\n\n#### [options]\n\n - `exclude` - **RegExp** Regular expression for files/dirs exclude *(default \"disabled\")*\n - `dotfiles`- **Boolean** Flag for hide dotfiles *(default \"enabled\")*\n - `cache` - **Boolean** Flag for using cache (depends from mtime dir) *(default \"enabled\")*\n - `json` - **Boolean** Flag for display json object instead of xml string *(default \"disabled\")*\n - `hash` - **String | false** Set your [hashes](http://nodejs.org/api/crypto.html#crypto_crypto_gethashes) or disable *(default \"md5\")*\n\n## Examples\n\nTake a look at my [examples](examples)\n\n### [License GPLv3](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fdir2xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhex7c0%2Fdir2xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhex7c0%2Fdir2xml/lists"}