Convert ENV to CBOR

Turn ENV files into CBOR. The same structure and key order in CBOR, with integers, floats, booleans, null, text, arrays and maps keeping their types and dates as text.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop ENV files on the dialor turn it to pick what to do

Your ENV file as CBOR.The structure and key order stay the same, and each value keeps its type.

  1. What you get

    One CBOR file with the same structure and key order as your ENV file. CBOR is the binary form of JSON used in IoT and web standards.

    Integers, floats, booleans, null, text, arrays and maps keep their types. A number stays a number and a boolean stays a boolean.

  2. What changes

    Dates are written as text. They are not stored as a date type in the CBOR file.

  3. Going back

    To turn a CBOR file into KEY=value lines again, use CBOR to ENV.

ENV and CBOR.What each format is.

The formats

From · ENV

Dotenv

KEY=value lines that hold environment variables for an app.

Extensions
.env
MIME type
text/x-env
Kind
Text and data
To · CBOR

CBOR

Concise Binary Object Representation, the binary JSON of IoT and web standards.

Extensions
.cbor
MIME type
application/cbor
Kind
Text and data

In your code.The same ENV to CBOR conversion through the API, for your app or your agent.

terminal
$ cv convert report.env report.cbor
$ cv convert report.env report.cbor

Questions.What people ask about ENV to CBOR.

01OF 04

No. The keys stay in the same order as in the ENV file.

Yes. Integers and floats keep their types, and so do booleans and null.

Dates are stored as text, not as a date type.

You get one CBOR file.

More conversions.Other ways in and out of ENV and CBOR.