{"id":23635322,"url":"https://github.com/michaelkourlas/node-xmlcreate","last_synced_at":"2025-08-31T11:30:53.307Z","repository":{"id":48029554,"uuid":"59165611","full_name":"michaelkourlas/node-xmlcreate","owner":"michaelkourlas","description":"Node.js module for building XML using a simple API; used to implement js2xmlparser","archived":false,"fork":false,"pushed_at":"2023-04-17T05:54:32.000Z","size":1531,"stargazers_count":5,"open_issues_count":3,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T20:55:11.828Z","etag":null,"topics":["build","javascipt","nodejs","xml"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/xmlcreate","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelkourlas.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.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":"2016-05-19T02:00:23.000Z","updated_at":"2023-06-21T22:00:07.000Z","dependencies_parsed_at":"2024-06-18T16:27:03.517Z","dependency_job_id":null,"html_url":"https://github.com/michaelkourlas/node-xmlcreate","commit_stats":{"total_commits":101,"total_committers":2,"mean_commits":50.5,"dds":"0.38613861386138615","last_synced_commit":"ca1de24ef05c10ca0b58aacf96554de2e59797bb"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/michaelkourlas/node-xmlcreate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkourlas%2Fnode-xmlcreate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkourlas%2Fnode-xmlcreate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkourlas%2Fnode-xmlcreate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkourlas%2Fnode-xmlcreate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelkourlas","download_url":"https://codeload.github.com/michaelkourlas/node-xmlcreate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkourlas%2Fnode-xmlcreate/sbom","scorecard":{"id":641297,"data":{"date":"2025-08-11","repo":{"name":"github.com/michaelkourlas/node-xmlcreate","commit":"ca1de24ef05c10ca0b58aacf96554de2e59797bb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/michaelkourlas/node-xmlcreate/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/michaelkourlas/node-xmlcreate/node.js.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2.0.4 not signed: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/52381046","Warn: release artifact v2.0.3 not signed: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/23319730","Warn: release artifact v2.0.2 not signed: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/23314220","Warn: release artifact v2.0.1 not signed: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/15994948","Warn: release artifact v2.0.0 not signed: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/15731308","Warn: release artifact v2.0.4 does not have provenance: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/52381046","Warn: release artifact v2.0.3 does not have provenance: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/23319730","Warn: release artifact v2.0.2 does not have provenance: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/23314220","Warn: release artifact v2.0.1 does not have provenance: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/15994948","Warn: release artifact v2.0.0 does not have provenance: https://api.github.com/repos/michaelkourlas/node-xmlcreate/releases/15731308"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"13 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-4q6p-r6v2-jvc5","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-qrpm-p2h7-hrv2","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T10:50:50.197Z","repository_id":48029554,"created_at":"2025-08-21T10:50:50.197Z","updated_at":"2025-08-21T10:50:50.197Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272973098,"owners_count":25024447,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["build","javascipt","nodejs","xml"],"created_at":"2024-12-28T05:33:59.214Z","updated_at":"2025-08-31T11:30:52.964Z","avatar_url":"https://github.com/michaelkourlas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xmlcreate\n\n[![Node.js CI](https://github.com/michaelkourlas/node-xmlcreate/actions/workflows/node.js.yml/badge.svg)](https://github.com/michaelkourlas/node-xmlcreate/actions/workflows/node.js.yml)\n[![npm version](https://badge.fury.io/js/xmlcreate.svg)](https://badge.fury.io/js/xmlcreate)\n\n## Overview\n\nxmlcreate is a Node.js module that can be used to build XML using a simple API.\n\n## Features\n\nxmlcreate allows you to use a series of chained function calls to build an XML\ntree.\n\nOnce the tree is built, it can be serialized to text. The formatting of the\ntext is customizable.\n\nxmlcreate can perform some basic validation to check that the resulting XML\nis well-formed.\n\n## Installation\n\nThe easiest way to install xmlcreate is using npm:\n\n```\nnpm install xmlcreate\n```\n\nYou can also build xmlcreate from source using npm:\n\n```\ngit clone https://github.com/michaelkourlas/node-xmlcreate.git\nnpm install\nnpm run-script build\n```\n\nThe `build` script will build the production variant of xmlcreate, run all\ntests, and build the documentation.\n\nYou can build the production variant without running tests using the script\n`prod`. You can also build the development version using the script `dev`.\nThe only difference between the two is that the development version includes\nsource maps.\n\n## Usage\n\nThe documentation for the current version is available [here](http://www.kourlas.com/node-xmlcreate/docs/2.0.4/).\n\nYou can also build the documentation using npm:\n\n```\nnpm run-script docs\n```\n\n## Examples\n\nThe following TypeScript example illustrates the basic usage of xmlcreate:\n\n```typescript\nimport {document} from \"xmlcreate\";\n\nconst tree = document();\n// prettier-ignore\ntree\n    .decl({encoding: \"UTF-8\"})\n        .up()\n    .dtd({\n             name: \"html\",\n             pubId: \"-//W3C//DTD XHTML 1.0 Strict//EN\",\n             sysId: \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"\n        })\n        .up()\n    .element({name: \"html\"})\n        .attribute({name: \"xmlns\"})\n            .text({charData: \"http://www.w3.org/1999/xhtml\"})\n                .up()\n            .up()\n        .attribute({name: \"xml:lang\"})\n            .text({charData: \"en\"})\n                .up()\n            .up()\n        .element({name: \"head\"})\n            .element({name: \"title\"})\n                .charData({charData: \"My page title\"})\n                    .up()\n                .up()\n            .up()\n        .element({name: \"body\"})\n            .element({name: \"h1\"})\n                .charData({charData: \"Welcome!\"})\n                    .up()\n                .up()\n            .element({name: \"p\"})\n                .charData({charData: \"This is some text on my website.\"})\n                    .up()\n                .up()\n        .element({name: \"div\"})\n            .element({name: \"img\"})\n                .attribute({name: \"src\"})\n                    .text({charData: \"picture.png\"})\n                        .up()\n                    .up()\n                .attribute({name: \"alt\"})\n                    .text({charData: \"picture\"}).up().up().up().up().up();\n\nconsole.log(tree.toString({doubleQuotes: true}));\n```\n\nThis example produces the following XML:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003c!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"\u003e\n\u003chtml xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\" lang=\"en\"\u003e\n    \u003chead\u003e\n        \u003ctitle\u003eMy page title\u003c/title\u003e\n    \u003c/head\u003e\n    \u003cbody\u003e\n        \u003ch1\u003eWelcome!\u003c/h1\u003e\n        \u003cp\u003eThis is some text on my website.\u003c/p\u003e\n    \u003c/body\u003e\n\u003c/html\u003e\n```\n\nA JavaScript version of this example can be found in the examples directory.\n\n## Tests\n\nxmlcreate includes a set of tests to verify core functionality. You can run\nthe tests using npm:\n\n```\nnpm run-script test-prod\n```\n\nThe only difference between the `test-prod` and `test-dev` scripts is that the\ndevelopment version includes source maps.\n\n## License\n\nxmlcreate is licensed under the [Apache License 2.0](http://www.apache.org/licenses/LICENSE-2.0).\nPlease see the LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelkourlas%2Fnode-xmlcreate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelkourlas%2Fnode-xmlcreate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelkourlas%2Fnode-xmlcreate/lists"}