You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Do you want to manage the settings of your apps? Make it easy with the help of
Beno
What is this?
Well I need manage some config files for DPM and for make this a easy experience
and make more type-safe i wrote this is a way for read files from a dir using
an many encoders 😎
Usage:
import{Beno}from'https://deno.land/x/beno/mod.ts';// Exists many options for this for example the json encoder or can create the encoder with jsonc propconstbeno=newBeno({encoder: 'json'});// Set a new key on the filebeno.set('filename.json',{key: 'beno',val: 'is awesome'});// Get the value from a key in a filename// This value can return string, boolean, or numberconsole.log(beno.get('beno').string());// Check if a key exists:beno.has('beno');// -> Returns truebeno.has('notExists');// Returns false// Advanced functions// Get the content in a Record<string,unknown>[]console.log(beno.content());// For configure some values you can use this function bellow the beno instancebeno.config(`${Deno.cwd()}/newPath/forFolderConfig`,`${Deno.cwd()}/custom-path/to/.envFile`,// Working in the implementation for this);
Why this name? 🎶
I didn't have a name for this project but I was listening to Bad Bunny and I'm
thinking why not call this project Beno.