{"id":16227636,"url":"https://github.com/leafoftree/yamljson","last_synced_at":"2026-04-16T13:31:39.573Z","repository":{"id":98920456,"uuid":"146063202","full_name":"leafOfTree/yamljson","owner":"leafOfTree","description":"Convert between yaml and json","archived":false,"fork":false,"pushed_at":"2018-08-27T08:19:02.000Z","size":15,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T05:32:52.373Z","etag":null,"topics":["convert","json","yaml"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leafOfTree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2018-08-25T03:59:13.000Z","updated_at":"2019-04-29T02:50:47.000Z","dependencies_parsed_at":"2023-04-04T03:02:34.126Z","dependency_job_id":null,"html_url":"https://github.com/leafOfTree/yamljson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fyamljson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fyamljson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fyamljson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leafOfTree%2Fyamljson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leafOfTree","download_url":"https://codeload.github.com/leafOfTree/yamljson/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247777898,"owners_count":20994371,"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":["convert","json","yaml"],"created_at":"2024-10-10T12:53:23.193Z","updated_at":"2026-04-16T13:31:34.553Z","avatar_url":"https://github.com/leafOfTree.png","language":"JavaScript","readme":"# yamljson\r\n\r\n实现 yaml 和 json 文件的相互转换\r\n\r\ncovert between yaml and json files\r\n\r\n## CLI Usage\r\n    // stdout json\r\n    yamljson config.yaml\r\n    // save as file\r\n    yamljson config.yaml \u003e config.json\r\n\r\n    // stdout yaml\r\n    yamljson config.json \r\n    // save as file\r\n    yamljson config.json \u003e config.yaml\r\n\r\n## Install\r\n\r\n    npm i yamljson -g\r\n\r\n## Document\r\n\r\n### CLI options\r\n\r\n-d: show debug info\r\n\r\n-h: show help info\r\n\r\n### API\r\n\r\nInstall in project\r\n\r\n    npm i yamlsjon\r\n\r\nrequire and use `convert` method\r\n\r\n```javascript\r\nconst yamljson = require('yamljson');\r\n\r\nconst outputYAML = yamljson.convert('./config.json');\r\nconst outputJSON = yamljson.convert('./config.yaml');\r\n```\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fyamljson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleafoftree%2Fyamljson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleafoftree%2Fyamljson/lists"}