properties-comparator 1.0.0 → 1.0.1
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.
- package/README.md +24 -0
- package/package.json +1 -1
- package/test/config1.properties +0 -32
- package/test/config2.properties +0 -35
package/README.md
CHANGED
|
@@ -1,2 +1,26 @@
|
|
|
1
1
|
# properties-comparator
|
|
2
2
|
This utility provides functionality to parse and compare properties files in the format of key-value pairs. It reads properties files, compares the values for each key across multiple files, and logs the results.
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## Link your package locally for testing:
|
|
6
|
+
|
|
7
|
+
### Test Locally
|
|
8
|
+
`npm link`
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## Now you can run the script globally using:
|
|
12
|
+
|
|
13
|
+
```properties-comparator <filePath1> <filePath2>```
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
## Publish the Package
|
|
17
|
+
### Login to npm (if you haven't already):
|
|
18
|
+
`npm login`
|
|
19
|
+
|
|
20
|
+
### Publish the package:
|
|
21
|
+
`npm publish`
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Install the Package Globally
|
|
25
|
+
Once published, you (or anyone) can install the package globally using:
|
|
26
|
+
`npm install -g properties-comparator`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "properties-comparator",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "This utility provides functionality to parse and compare properties files in the format of key-value pairs. It reads properties files, compares the values for each key across multiple files, and logs the results.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
package/test/config1.properties
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# General Application Settings
|
|
2
|
-
app.name=MyApplication
|
|
3
|
-
app.version=1.0.0
|
|
4
|
-
app.environment=development
|
|
5
|
-
|
|
6
|
-
# Database Configuration
|
|
7
|
-
db.host=localhost
|
|
8
|
-
db.port=3306
|
|
9
|
-
db.username=root
|
|
10
|
-
db.password=password123
|
|
11
|
-
db.name=my_database
|
|
12
|
-
|
|
13
|
-
# Logging Settings
|
|
14
|
-
log.level=INFO
|
|
15
|
-
log.filepath=/var/log/myapplication.log
|
|
16
|
-
|
|
17
|
-
# API Settings
|
|
18
|
-
api.url=https://api.example.com
|
|
19
|
-
api.timeout=5000
|
|
20
|
-
api.key=abcd1234efgh5678ijkl
|
|
21
|
-
|
|
22
|
-
# Feature Flags
|
|
23
|
-
feature.newUI.enabled=true
|
|
24
|
-
feature.betaFeature.enabled=false
|
|
25
|
-
feature.advancedSearch.enabled=true
|
|
26
|
-
|
|
27
|
-
# Email Configuration
|
|
28
|
-
email.host=smtp.example.com
|
|
29
|
-
email.port=587
|
|
30
|
-
email.username=noreply@example.com
|
|
31
|
-
email.password=securepassword
|
|
32
|
-
email.from=noreply@example.com
|
package/test/config2.properties
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# General Application Settings
|
|
2
|
-
app.name=MyApplication
|
|
3
|
-
app.version=1.0.0
|
|
4
|
-
app.environment=development
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
# Logging Settings
|
|
9
|
-
log.level=INFO
|
|
10
|
-
log.filepath=/var/log/myapplication.log
|
|
11
|
-
|
|
12
|
-
# API Settings
|
|
13
|
-
api.url=https://api.example.com
|
|
14
|
-
api.timeout=5000
|
|
15
|
-
api.key=abcd1234efgh5678ijkl
|
|
16
|
-
|
|
17
|
-
# Feature Flags
|
|
18
|
-
feature.newUI.enabled=true
|
|
19
|
-
feature.betaFeature.enabled=false
|
|
20
|
-
feature.advancedSearch.enabled=true
|
|
21
|
-
|
|
22
|
-
# Email Configuration
|
|
23
|
-
email.host=smtp.example.com
|
|
24
|
-
email.port=587
|
|
25
|
-
email.username=noreply@example.com
|
|
26
|
-
email.password=securepassword
|
|
27
|
-
email.from=noreply@example.com
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# Database Configuration
|
|
31
|
-
db.host=localhost
|
|
32
|
-
db.port=3306
|
|
33
|
-
db.username=root
|
|
34
|
-
db.password=password321
|
|
35
|
-
db.name=my_database
|