configre 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +3 -3
  2. package/index.js +1 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # 🔧 Configres
1
+ # 🔧 Configre
2
2
 
3
3
  Welcome to Configre, the coolest way to manage your project's configuration with a twist of personality based on your environment! Whether you're in development, testing, or production, Configre seamlessly adjusts to your project's needs by loading specific configurations tailored to each environment. Say goodbye to manual config tweaks and hello to automatic, hassle-free setup! 🚀
4
4
 
@@ -18,7 +18,7 @@ To get started with Configre, follow these steps:
18
18
  First, make sure you have `Node.js` installed. Then, add Configre to your project:
19
19
 
20
20
  ```bash
21
- npm install Configre --save
21
+ npm install configre --save
22
22
  ```
23
23
 
24
24
  2. **Setup Your Configuration Files**
@@ -34,7 +34,7 @@ To get started with Configre, follow these steps:
34
34
  Import and use Configre to load your configurations:
35
35
 
36
36
  ```javascript
37
- const cfg = require("Configre")(__dirname + "/config");
37
+ const cfg = require("Configre")(); // default dir '/config'
38
38
  console.log(cfg.db); // Access your db configuration
39
39
  ```
40
40
 
package/index.js CHANGED
@@ -4,7 +4,7 @@ const obj = require("lodash/object");
4
4
  const log = require("lemonlog")("Configre");
5
5
 
6
6
  class ConfigreClass {
7
- constructor(path) {
7
+ constructor(path = __dirname + "/../../config") {
8
8
  this.defaultSettings = require(path);
9
9
  this.dirname = path;
10
10
  this.profile = process.argv.length > 2 ? process.argv[2] : os.hostname();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "configre",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "🔧 Effortlessly Tailor Your Settings",
5
5
  "dependencies": {
6
6
  "lemonlog": "^1.0.2",