From ee3162fbbba71d8c21f808a197d91911f21465d9 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 4 Jul 2023 02:50:07 -0400 Subject: [PATCH] chore: prune README.md --- README.md | 56 +------------------------------------------------------ 1 file changed, 1 insertion(+), 55 deletions(-) diff --git a/README.md b/README.md index bd31429..4022271 100644 --- a/README.md +++ b/README.md @@ -1,55 +1 @@ -# bcfg - -Config parser (used for bcoin). - -## Usage - -``` js -const Config = require('bcfg'); - -// Will consider ~/.my-module the prefix directory. -const config = new Config('my-module', { - alias: { - 'n': 'network' - } -}); - -// Inject some custom options first. -config.inject({ - some: 'user', - options: 'here' -}); - -config.load({ - // Parse URL hash - hash: true, - // Parse querystring - query: true, - // Parse environment - env: true, - // Parse args - argv: true -}); - -// Will parse ~/.my-module/my-config.conf (throws on FS error). -config.open('my-config.conf'); - -// These will cast types and throw on incorrect type. -console.log(config.str('username')); -console.log(config.str('password')); -console.log(config.uint('userid')); -console.log(config.float('percent')); -console.log(config.bool('initialize')); -``` - -## Contribution and License Agreement - -If you contribute code to this project, you are implicitly allowing your code -to be distributed under the MIT license. You are also implicitly verifying that -all code is your original work. `` - -## License - -- Copyright (c) 2017, Christopher Jeffrey (MIT License). - -See LICENSE for more info. +# relay-cfg