Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.
/ code-gov-converter Public archive

WIP: Converts publiccode.yml to code.json

Notifications You must be signed in to change notification settings

GSA/code-gov-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

code-json-converter

WIP: Converts publiccode.yml to code.json

install

npm install @code.gov/converter

usage

To convert a publiccode.yml file to a code.json file

const { readFileSync, writeFileSync } from 'fs';
const { toCodeDotGov } from '@code.gov/converter';

const text = readFileSync('./publiccode.yml');

const data = toCodeDotJSON(text);

writeFileSync('code.json', JSON.stringify(data));

contact

[email protected]

About

WIP: Converts publiccode.yml to code.json

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published