diff --git a/README.md b/README.md index 3276a29..1b102c0 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,14 @@ quirgo-cli Contributions are welcome. +### Env variables parsing + +Are supported the following file formats + +- JSON + +- .env + ## License Quirgo is [MIT licensed](LICENSE). diff --git a/test/data/parsing.env b/test/data/parsing.env new file mode 100644 index 0000000..9465831 --- /dev/null +++ b/test/data/parsing.env @@ -0,0 +1,3 @@ +MA=13123 +MUI=sadsad +ALL=12;324=324;242,\123 diff --git a/test/test.js b/test/test.js index 1d274bb..d92cd42 100644 --- a/test/test.js +++ b/test/test.js @@ -23,10 +23,10 @@ import { envParser, jsonParser } from "../dist/lib/parsing/parsers.cjs"; -// const ff = envParser(".env"); -// console.log(ff); +const fft = envParser("test/data/parsing.env"); +console.log("Env parsing:: ", fft); const ff = jsonParser("test/data/test.json", { verbose: true, }); -console.log(ff); +console.log("JSON parsing:: ", ff);