-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
95a3396
commit 02e0738
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const yaml = require('js-yaml'); | ||
const fs = require('fs'); | ||
|
||
|
||
const jsonData = { | ||
"name": "first-repo", | ||
"has_wiki": true, | ||
"has_projects": true, | ||
"has_issues": false | ||
}; | ||
|
||
const yamlData = yaml.dump(jsonData); | ||
|
||
// Write the extracted data to a yaml file | ||
fs.writeFileSync('yaml-data.yml', yamlData); |