properties-file 2.2.0 → 2.2.2
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 +4 -4
- package/package.json +25 -25
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|

|
|
7
7
|
[](https://snyk.io/test/github/Avansai/properties-file?targetFile=package.json)
|
|
8
8
|
|
|
9
|
-
`.properties` JSON converter,
|
|
9
|
+
`.properties` file JSON converter, serializer, parser and Webpack loader.
|
|
10
10
|
|
|
11
11
|
## Installation 💻
|
|
12
12
|
|
|
@@ -62,11 +62,11 @@ import { propertiesToJson } from 'properties-file/content'
|
|
|
62
62
|
console.log(propertiesToJson(propertiesFileContent))
|
|
63
63
|
```
|
|
64
64
|
|
|
65
|
-
### `escapeKey` and `escapeValue` (
|
|
65
|
+
### `escapeKey` and `escapeValue` (serializing content to `.properties` format)
|
|
66
66
|
|
|
67
|
-
> ⚠ This package does not offer full-fledged `.properties` file writer that would include a variety of options like modifying an existing file while keeping comments and line breaks intact. If you have any interest into adding this in, pull requests are welcomed!
|
|
67
|
+
> ⚠ This package does not offer a full-fledged `.properties` file writer that would include a variety of options like modifying an existing file while keeping comments and line breaks intact. If you have any interest into adding this in, pull requests are welcomed!
|
|
68
68
|
|
|
69
|
-
It is possible to use this package
|
|
69
|
+
It is possible to use this package serialize content to `.properties.` format by using `escapeKey` and `escapeValue`. Here is an example of how it can be done:
|
|
70
70
|
|
|
71
71
|
```ts
|
|
72
72
|
import * as fs from 'node:fs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "properties-file",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.2",
|
|
4
4
|
"description": ".properties file parser, JSON converter and Webpack loader.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
".properties",
|
|
@@ -61,30 +61,30 @@
|
|
|
61
61
|
"test": "jest --coverage"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
|
-
"@release-it/conventional-changelog": "
|
|
65
|
-
"@types/jest": "
|
|
66
|
-
"@typescript-eslint/eslint-plugin": "
|
|
67
|
-
"@typescript-eslint/parser": "
|
|
68
|
-
"dotenv-cli": "
|
|
69
|
-
"eslint": "
|
|
70
|
-
"eslint-config-prettier": "
|
|
71
|
-
"eslint-import-resolver-node": "
|
|
72
|
-
"eslint-import-resolver-typescript": "
|
|
73
|
-
"eslint-plugin-import": "
|
|
74
|
-
"eslint-plugin-jest": "
|
|
75
|
-
"eslint-plugin-json-files": "
|
|
76
|
-
"eslint-plugin-prefer-arrow-functions": "
|
|
77
|
-
"eslint-plugin-prettier": "
|
|
78
|
-
"eslint-plugin-tsdoc": "
|
|
79
|
-
"eslint-plugin-unicorn": "
|
|
80
|
-
"jest": "
|
|
81
|
-
"prettier": "
|
|
82
|
-
"prettier-plugin-organize-imports": "
|
|
83
|
-
"prettier-plugin-sh": "
|
|
84
|
-
"release-it": "
|
|
85
|
-
"ts-jest": "
|
|
86
|
-
"ts-node": "
|
|
87
|
-
"typescript": "
|
|
64
|
+
"@release-it/conventional-changelog": "5.1.1",
|
|
65
|
+
"@types/jest": "29.5.0",
|
|
66
|
+
"@typescript-eslint/eslint-plugin": "5.57.0",
|
|
67
|
+
"@typescript-eslint/parser": "5.57.0",
|
|
68
|
+
"dotenv-cli": "7.1.0",
|
|
69
|
+
"eslint": "8.37.0",
|
|
70
|
+
"eslint-config-prettier": "8.8.0",
|
|
71
|
+
"eslint-import-resolver-node": "0.3.7",
|
|
72
|
+
"eslint-import-resolver-typescript": "3.5.4",
|
|
73
|
+
"eslint-plugin-import": "2.27.5",
|
|
74
|
+
"eslint-plugin-jest": "27.2.1",
|
|
75
|
+
"eslint-plugin-json-files": "2.1.0",
|
|
76
|
+
"eslint-plugin-prefer-arrow-functions": "3.1.4",
|
|
77
|
+
"eslint-plugin-prettier": "4.2.1",
|
|
78
|
+
"eslint-plugin-tsdoc": "0.2.17",
|
|
79
|
+
"eslint-plugin-unicorn": "46.0.0",
|
|
80
|
+
"jest": "29.5.0",
|
|
81
|
+
"prettier": "2.8.7",
|
|
82
|
+
"prettier-plugin-organize-imports": "3.2.2",
|
|
83
|
+
"prettier-plugin-sh": "0.12.8",
|
|
84
|
+
"release-it": "15.10.0",
|
|
85
|
+
"ts-jest": "29.0.5",
|
|
86
|
+
"ts-node": "10.9.1",
|
|
87
|
+
"typescript": "5.0.3"
|
|
88
88
|
},
|
|
89
89
|
"engines": {
|
|
90
90
|
"node": "^14.18.1 || >=16.0.0"
|