-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release(v0.1.0): first release docs and some info
- Loading branch information
1 parent
7b9dd0f
commit da5474d
Showing
8 changed files
with
81 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"deno.enable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
{ | ||
"name": "bad-cfg", | ||
"$schema": "https://x.nest.land/[email protected]/src/schema.json", | ||
"name": "beno", | ||
"entry": "mod.ts", | ||
"description": "Dont make your config experience bad only disfrute with this", | ||
"homepage": "https://github.com/the_name/bad-cfg", | ||
"unstable": true, | ||
"description": "Do you want to manage the settings of your apps? Make it easy with the help of Beno", | ||
"homepage": "https://github.com/dpmland/beno", | ||
"unstable": false, | ||
"unlisted": false, | ||
"releaseType": "patch", | ||
"releaseType": "major", | ||
"files": [ | ||
"./mod.ts", | ||
"./src/**/*", | ||
|
@@ -15,6 +16,6 @@ | |
".git" | ||
], | ||
"checkFormat": "deno task fmt:check", | ||
"checkInstallation": "deno test", | ||
"checkInstallation": true, | ||
"check": false | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import { Beno } from '../mod.ts'; | ||
|
||
// Exists many options for this for example the json encoder or can create the encoder with jsonc prop | ||
const beno = new Beno({ encoder: 'json' }); | ||
|
||
// Set a new key on the file | ||
beno.set('filename.json', { key: 'beno', val: 'is awesome' }); | ||
|
||
// Get the value from a key in a filename | ||
// This value can return string, boolean, or number | ||
console.log(beno.get('beno').string()); | ||
|
||
// Check if a key exists: | ||
beno.has('beno'); // -> Returns true | ||
beno.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 instance | ||
beno.config( | ||
`${Deno.cwd()}/newPath/forFolderConfig`, | ||
`${Deno.cwd()}/custom-path/to/.envFile`, | ||
); |