8000 GitHub - swift-nav/yamloboros: yaml2json and json2yaml converters
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

swift-nav/yamloboros

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yamloboros

CI 858F

Extremely simple yaml2json and json2yaml CLI tools. Basically just CLI wrappers around serde_yaml and serde_json.

Installation

cargo install --git ssh://git@github.com/swift-nav/yamloboros.git --bins

Or see the releases page:

yaml2json

yaml2json <<EOF
>
> foo:
>   - 1
>   - 2
>   - abc
> bar:
>   baz: quux
>
> EOF

# Output: {"foo":[1,2,"abc"],"bar":{"baz":"quux"}}

json2yaml

json2yaml <<EOF
>
> {"foo":[1,2,"abc"],"bar":{"baz":"quux"}}
>
> EOF

# Output:
#   ---
#   bar:
#     baz: quux
#   foo:
#   - 1
#   - 2
#   - abc

Copyright

Copyright (C) 2020 Swift Navigation Inc.
Contact: Swift Navigation <dev@swiftnav.com>

This source is subject to the license found in the file 'LICENSE' which must be
be distributed together with this source. All other rights reserved.

THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

Logo

Logo declared "public domain" per wikimedia.

About

yaml2json and json2yaml converters

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

0