ngx-iso-form 2.1.2 → 2.1.3
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 +48 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -141,4 +141,51 @@ Please declare all your translation rules under 'iso' object.
|
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
|
-
```
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
# Convert XSD to JSON
|
|
147
|
+
Global (For CLI)
|
|
148
|
+
```console
|
|
149
|
+
npm install -g xsd-json-converter
|
|
150
|
+
```
|
|
151
|
+
Local (For SCRIPT)
|
|
152
|
+
```console
|
|
153
|
+
npm install xsd-json-converter
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### CLI
|
|
157
|
+
```console
|
|
158
|
+
xjc <source-path> <output-path>
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### Example
|
|
162
|
+
##### Linux
|
|
163
|
+
|
|
164
|
+
```console
|
|
165
|
+
xjc /mnt/c/source/xsd/camt.053.001.10.xsd /mnt/c/source/xsd/camt.053.json
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
##### Windows
|
|
169
|
+
```console
|
|
170
|
+
xjc C:/source/xsd/camt.053.001.10.xsd C:/source/xsd/camt.053.json
|
|
171
|
+
```
|
|
172
|
+
### Script
|
|
173
|
+
JavaScript
|
|
174
|
+
```js
|
|
175
|
+
const xsd = require('xsd-json-converter').default;
|
|
176
|
+
|
|
177
|
+
xsd.convert('./camt.053.001.10.xsd')
|
|
178
|
+
.then(output => console.log(output))
|
|
179
|
+
.catch(error => console.error(error));
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
TypeScript
|
|
183
|
+
```ts
|
|
184
|
+
import xsd from "xsd-json-converter";
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
xsd.convert('./camt.053.001.10.xsd')
|
|
188
|
+
.then(output => console.log(output))
|
|
189
|
+
.catch(error => console.error(error));
|
|
190
|
+
```
|
|
191
|
+
**NOTE**: For script please install the package locally
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-iso-form",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
4
4
|
"description": "This form is used to design Angular Reactive Form using any given XSD. The primary use of this UI library is to design ISO 20022 forms dynamically.",
|
|
5
5
|
"author": "Abhishek Joshi aka PixelByAJ",
|
|
6
6
|
"repository": {
|