Skip to content

sbarzowski/dir2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dir2json

This is an exteremely simple tool which saves a contents of a directory as JSON. A directory is represented as a JSON object with fields corresponding to name of the contents. Regular file contents are represented as strings.

Installation

go get https://github.com/sbarzowski/dir2json

Example Usage with Jsonnet

dir2json my_dir > my_dir.json
jsonnet --tla-var-code my_dir=my_dir.json -e 'function(my_dir) my_dir["sub_dir"]["file"]'

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages