Coder Social home page Coder Social logo

oknenavin / i2o Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 32 KB

Collection of simple filters for conversion between the file formats supported by CXON

License: MIT License

Makefile 28.37% C++ 42.24% CMake 19.93% Shell 9.45%
json cbor filters good-first-issue rfc-7159 rfc-7049 ecma-404 convert conversion converter

i2o's Introduction

I2O utilities

Utilities Version
Language Format Format
License

Build Build Build
Codecov Coverity


I2O is a collection of filters for conversion between the file formats implemented by CXON library, which currently consist of JSON and CBOR


Contents


Introduction

Example
$ json2cbor < in.json > out.cbor                  # JSON to CBOR
$ cbor2json < in.cbor > out.json                  # CBOR to JSON
$ cat in.cbor | cbor2json | json2json > out.json  # CBOR to pretty JSON

Formats

The implementation strictly complies with RFC8259 / ECMA-404.

The implementation complies with RFC7049.


Compilation

I2O requires C++11 compliant compiler. C++17 compliant compiler with <charconv> (P0067R5) support is recommended for best performance.
The only dependency, besides the standard library is the CXON library.


Installation

I2O can be built and installed using the included makefile on POSIX systems:

$ git clone https://github.com/oknenavin/cxon.git
$ sudo make -C cxon install
$ git clone https://github.com/oknenavin/i2o.git
$ sudo make -C i2o install

The default installation directory is /usr/local/bin and can be altered with DESTDIR and prefix variables, for example:

$ git clone https://github.com/oknenavin/cxon.git
$ sudo make -C cxon DESTDIR=~ prefix=/. install
$ git clone https://github.com/oknenavin/i2o.git
$ sudo make -C i2o DESTDIR=~ prefix=/. install

will install CXON and I2O in ~/include and ~/bin respectively.

Because CXON is a header-only library, you may skip its installation:

$ git clone https://github.com/oknenavin/cxon.git
$ git clone https://github.com/oknenavin/i2o.git
$ sudo make -C i2o CXXFLAGS="../cxon/src" install

or just build it in place:

$ git clone https://github.com/oknenavin/cxon.git
$ git clone https://github.com/oknenavin/i2o.git
$ make -C i2o CXXFLAGS="../cxon/src" # the binaries are in i2o/.out

Contributing

Any kind of contribution (feedback, suggestions, code, tests, documentation, etc.) is welcome.
Contact via GitHub (create an issue even it's just a question or comment) or via mail.


Distributed under the MIT license. See LICENSE for more information.
GitHub

i2o's People

Contributors

oknenavin avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.