@helpers4/json 0.0.0-stage → 3.1.2-alpha.0

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/LICENSE.md ADDED
@@ -0,0 +1,160 @@
1
+ ### GNU LESSER GENERAL PUBLIC LICENSE
2
+
3
+ Version 3, 29 June 2007
4
+
5
+ Copyright (C) 2007 Free Software Foundation, Inc.
6
+ <https://fsf.org/\>
7
+
8
+ Everyone is permitted to copy and distribute verbatim copies of this
9
+ license document, but changing it is not allowed.
10
+
11
+ This version of the GNU Lesser General Public License incorporates the
12
+ terms and conditions of version 3 of the GNU General Public License,
13
+ supplemented by the additional permissions listed below.
14
+
15
+ #### 0. Additional Definitions.
16
+
17
+ As used herein, "this License" refers to version 3 of the GNU Lesser
18
+ General Public License, and the "GNU GPL" refers to version 3 of the
19
+ GNU General Public License.
20
+
21
+ "The Library" refers to a covered work governed by this License, other
22
+ than an Application or a Combined Work as defined below.
23
+
24
+ An "Application" is any work that makes use of an interface provided by
25
+ the Library, but which is not otherwise based on the Library. Defining a
26
+ subclass of a class defined by the Library is deemed a mode of using an
27
+ interface provided by the Library.
28
+
29
+ A "Combined Work" is a work produced by combining or linking an
30
+ Application with the Library. The particular version of the Library with
31
+ which the Combined Work was made is also called the "Linked Version".
32
+
33
+ The "Minimal Corresponding Source" for a Combined Work means the
34
+ Corresponding Source for the Combined Work, excluding any source code
35
+ for portions of the Combined Work that, considered in isolation, are
36
+ based on the Application, and not on the Linked Version.
37
+
38
+ The "Corresponding Application Code" for a Combined Work means the
39
+ object code and/or source code for the Application, including any data
40
+ and utility programs needed for reproducing the Combined Work from the
41
+ Application, but excluding the System Libraries of the Combined Work.
42
+
43
+ #### 1. Exception to Section 3 of the GNU GPL.
44
+
45
+ You may convey a covered work under sections 3 and 4 of this License
46
+ without being bound by section 3 of the GNU GPL.
47
+
48
+ #### 2. Conveying Modified Versions.
49
+
50
+ If you modify a copy of the Library, and, in your modifications, a
51
+ facility refers to a function or data to be supplied by an Application
52
+ that uses the facility (other than as an argument passed when the
53
+ facility is invoked), then you may convey a copy of the modified version:
54
+
55
+ - **a)** under this License, provided that you make a good faith effort
56
+ to ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs whatever
58
+ part of its purpose remains meaningful, or
59
+
60
+ - **b)** under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ #### 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from a
66
+ header file that is part of the Library. You may convey such object code
67
+ under terms of your choice, provided that, if the incorporated material
68
+ is not limited to numerical parameters, data structure layouts and
69
+ accessors, or small macros, inline functions and templates (ten or fewer
70
+ lines in length), you do both of the following:
71
+
72
+ - **a)** Give prominent notice with each copy of the object code that
73
+ the Library is used in it and that the Library and its use are covered
74
+ by this License.
75
+
76
+ - **b)** Accompany the object code with a copy of the GNU GPL and this
77
+ license document.
78
+
79
+ #### 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that, taken
82
+ together, effectively do not restrict modification of the portions of
83
+ the Library contained in the Combined Work and reverse engineering for
84
+ debugging such modifications, if you also do each of the following:
85
+
86
+ - **a)** Give prominent notice with each copy of the Combined Work that
87
+ the Library is used in it and that the Library and its use are covered
88
+ by this License.
89
+
90
+ - **b)** Accompany the Combined Work with a copy of the GNU GPL and
91
+ this license document.
92
+
93
+ - **c)** For a Combined Work that displays copyright notices during
94
+ execution, include the copyright notice for the Library among these
95
+ notices, as well as a reference directing the user to the copies of
96
+ the GNU GPL and this license document.
97
+
98
+ - **d)** Do one of the following:
99
+
100
+ - **0)** Convey the Minimal Corresponding Source under the terms of
101
+ this License, and the Corresponding Application Code in a form
102
+ suitable for, and under terms that permit, the user to recombine or
103
+ relink the Application with a modified version of the Linked Version
104
+ to produce a modified Combined Work, in the manner specified by
105
+ section 6 of the GNU GPL for conveying Corresponding Source.
106
+
107
+ - **1)** Use a suitable shared library mechanism for linking with the
108
+ Library. A suitable mechanism is one that (a) uses at run time a copy
109
+ of the Library already present on the user's computer system, and (b)
110
+ will operate properly with a modified version of the Library that is
111
+ interface-compatible with the Linked Version.
112
+
113
+ - **e)** Provide Installation Information, but only if you would
114
+ otherwise be required to provide such information under section 6 of
115
+ the GNU GPL, and only to the extent that such information is necessary
116
+ to install and execute a modified version of the Combined Work produced
117
+ by recombining or relinking the Application with a modified version of
118
+ the Linked Version. (If you use option 4d0, the Installation
119
+ Information must accompany the Minimal Corresponding Source and
120
+ Corresponding Application Code. If you use option 4d1, you must
121
+ provide the Installation Information in the manner specified by
122
+ section 6 of the GNU GPL for conveying Corresponding Source.)
123
+
124
+ #### 5. Combined Libraries.
125
+
126
+ You may place library facilities that are a work based on the Library
127
+ side by side in a single library together with other library facilities
128
+ that are not Applications and are not covered by this License, and
129
+ convey such a combined library under terms of your choice, if you do
130
+ both of the following:
131
+
132
+ - **a)** Accompany the combined library with a copy of the same work
133
+ based on the Library, uncombined with any other library facilities,
134
+ conveyed under the terms of this License.
135
+
136
+ - **b)** Give prominent notice with the combined library that part of
137
+ it is a work based on the Library, and explaining where to find the
138
+ accompanying uncombined form of the same work.
139
+
140
+ #### 6. Revised Versions of the GNU Lesser General Public License.
141
+
142
+ The Free Software Foundation may publish revised and/or new versions of
143
+ the GNU Lesser General Public License from time to time. Such new
144
+ versions will be similar in spirit to the present version, but may
145
+ differ in detail to address new problems or concerns.
146
+
147
+ Each version is given a distinguishing version number. If the Library as
148
+ you received it specifies that a certain numbered version of the GNU
149
+ Lesser General Public License "or any later version" applies to it, you
150
+ have the option of following the terms and conditions either of that
151
+ published version or of any later version published by the Free Software
152
+ Foundation. If the Library as you received it does not specify a version
153
+ number of the GNU Lesser General Public License, you may choose any
154
+ version of the GNU Lesser General Public License ever published by the
155
+ Free Software Foundation.
156
+
157
+ If the Library as you received it specifies that a proxy can decide
158
+ whether future versions of the GNU Lesser General Public License shall
159
+ apply, that proxy's public statement of acceptance of any version is
160
+ permanent authorization for you to choose that version for the Library.
package/README.md CHANGED
@@ -1,3 +1,97 @@
1
- # Temporary Holding Version
1
+ # @helpers4
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The `@helpers4` are a collection of helper functions for use in any project, whatever the framework.
4
+ Every helper is a standalone module and supports tree-shaking, so you can use only the helpers you need without embedding the whole library.
5
+
6
+ ## @helpers4/json
7
+
8
+ A set of helpers for working with URLs.
9
+
10
+ ## Documentation
11
+
12
+ [https://helpers4.dev/typescript/categories/json/](https://helpers4.dev/typescript/categories/json/)
13
+
14
+ <!-- AUTOMATIC-METHODS -->
15
+ - parse
16
+ - parseLines
17
+ - parseSequence
18
+ - parseStrict
19
+ - safeParse
20
+ - safeParseLines
21
+ - safeParseSequence
22
+ - safeParseStrict
23
+ - stringify
24
+ - stringifyLines
25
+ - stringifySequence
26
+ <!-- /AUTOMATIC-METHODS -->
27
+
28
+ ## See
29
+
30
+ <!-- AUTOMATIC-SIBLINGS -->
31
+ - [array](../array)
32
+ - [ci](../ci)
33
+ - [color](../color)
34
+ - [commit](../commit)
35
+ - [date](../date)
36
+ - [function](../function)
37
+ - [guard](../guard)
38
+ - [id](../id)
39
+ - [license](../license)
40
+ - [map](../map)
41
+ - [markdown](../markdown)
42
+ - [node](../node)
43
+ - [number](../number)
44
+ - [object](../object)
45
+ - [observable](../observable)
46
+ - [promise](../promise)
47
+ - [set](../set)
48
+ - [string](../string)
49
+ - [structure](../structure)
50
+ - [type](../type)
51
+ - [url](../url)
52
+ - [version](../version)
53
+ <!-- /AUTOMATIC-SIBLINGS -->
54
+
55
+ ## All Available Packages
56
+
57
+ <!-- AUTOMATIC-CATEGORIES-TABLE -->
58
+ | Name | Package | Source Code | Description |
59
+ |------|---------|-------------|-------------|
60
+ | array | [@helpers4/array](https://www.npmjs.com/package/@helpers4/array) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/array) | Array manipulation utilities |
61
+ | ci | [@helpers4/ci](https://www.npmjs.com/package/@helpers4/ci) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/ci) | CI/CD workflow status utilities |
62
+ | color | [@helpers4/color](https://www.npmjs.com/package/@helpers4/color) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/color) | Color conversion and validation utilities |
63
+ | commit | [@helpers4/commit](https://www.npmjs.com/package/@helpers4/commit) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/commit) | Conventional Commits parsing and analysis |
64
+ | date | [@helpers4/date](https://www.npmjs.com/package/@helpers4/date) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/date) | Date and time utility functions |
65
+ | function | [@helpers4/function](https://www.npmjs.com/package/@helpers4/function) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/function) | Function utilities and type guards |
66
+ | guard | [@helpers4/guard](https://www.npmjs.com/package/@helpers4/guard) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/guard) | Runtime type guard utilities |
67
+ | id | [@helpers4/id](https://www.npmjs.com/package/@helpers4/id) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/id) | Unique identifier generation utilities |
68
+ | json | [@helpers4/json](https://www.npmjs.com/package/@helpers4/json) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/json) | JSON parsing and serialization, with its common variants |
69
+ | license | [@helpers4/license](https://www.npmjs.com/package/@helpers4/license) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/license) | License string classification and comparison |
70
+ | map | [@helpers4/map](https://www.npmjs.com/package/@helpers4/map) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/map) | Native Map manipulation utilities |
71
+ | markdown | [@helpers4/markdown](https://www.npmjs.com/package/@helpers4/markdown) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/markdown) | Markdown formatting and escaping utilities |
72
+ | node | [@helpers4/node](https://www.npmjs.com/package/@helpers4/node) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/node) | Node.js-specific utilities |
73
+ | number | [@helpers4/number](https://www.npmjs.com/package/@helpers4/number) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/number) | Number utility functions and validation |
74
+ | object | [@helpers4/object](https://www.npmjs.com/package/@helpers4/object) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/object) | Object manipulation utilities |
75
+ | observable | [@helpers4/observable](https://www.npmjs.com/package/@helpers4/observable) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/observable) | Observable utilities and combinators |
76
+ | promise | [@helpers4/promise](https://www.npmjs.com/package/@helpers4/promise) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/promise) | Promise utilities and error handling |
77
+ | set | [@helpers4/set](https://www.npmjs.com/package/@helpers4/set) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/set) | Native Set manipulation utilities |
78
+ | string | [@helpers4/string](https://www.npmjs.com/package/@helpers4/string) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/string) | String manipulation and formatting utilities |
79
+ | structure | [@helpers4/structure](https://www.npmjs.com/package/@helpers4/structure) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/structure) | Generic, domain-agnostic data structures |
80
+ | type | [@helpers4/type](https://www.npmjs.com/package/@helpers4/type) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/type) | Compile-time TypeScript utility types |
81
+ | url | [@helpers4/url](https://www.npmjs.com/package/@helpers4/url) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/url) | URL parsing and manipulation utilities |
82
+ | version | [@helpers4/version](https://www.npmjs.com/package/@helpers4/version) | [Source](https://github.com/helpers4/helpers4/tree/main/helpers/version) | Version string manipulation utilities |
83
+ <!-- /AUTOMATIC-CATEGORIES-TABLE -->
84
+
85
+ ## Contributors
86
+
87
+ <table>
88
+ <tr>
89
+ <td align="center" style="word-wrap: break-word; width: 150.0; height: 150.0">
90
+ <a href=https://github.com/baxyz>
91
+ <img src=https://avatars.githubusercontent.com/u/7852177?v=4 width="100;" alt=baxyz/>
92
+ <br />
93
+ <sub style="font-size:14px"><b>baxyz</b></sub>
94
+ </a>
95
+ </td>
96
+ </tr>
97
+ </table>