Skip to content

Commit

Permalink
feat(minor): added pseu-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
wilfreud committed Mar 21, 2024
1 parent 1d45cae commit 8bba2d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ quirgo-cli

Contributions are welcome.

### Env variables parsing

Are supported the following file formats

- JSON
<!-- Here add the syntax that needs to ne respected -->
- .env

## License

Quirgo is [MIT licensed](LICENSE).
3 changes: 3 additions & 0 deletions test/data/parsing.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MA=13123
MUI=sadsad
ALL=12;324=324;242,\123
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 8bba2d8

Please sign in to comment.