Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/umairabbasdev/generate-json-schema
This package generates a JSON schema based on the provided JSON data.
https://github.com/umairabbasdev/generate-json-schema
json jsonschema schema-generator
Last synced: about 1 month ago
JSON representation
This package generates a JSON schema based on the provided JSON data.
- Host: GitHub
- URL: https://github.com/umairabbasdev/generate-json-schema
- Owner: umairabbasDev
- License: mit
- Created: 2023-07-17T13:39:47.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-17T14:19:17.000Z (over 1 year ago)
- Last Synced: 2024-10-31T03:42:14.021Z (3 months ago)
- Topics: json, jsonschema, schema-generator
- Language: TypeScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generate-json-schema
This package generates a JSON schema based on the provided JSON data. The package will continually undergo enhancements to improve its functionality. Future releases will introduce additional features like cli usage , and you also have the option to fork the package and contribute to its improvement.
### Installation
To install the package, run the following command in your terminal:
Run on the command line:```bash
npm install generate-json-schema --save-dev
```Then, within your project, you can utilize it as follows:
```javascript
var generateJsonSchema = require('generate-json-schema'),const json_Obj = { users: { name: "John Doe", age :30 } ,{ name: "Jane Doe", age :27 } },
const schema_Obj = generateJsonSchema(json_Obj);
```
### Local Download
To download the package locally, execute the following commands in your terminal:
```bash
git clone https://github.com/umairabbasDev/generate-json-schema
cd generate-json-schema
npm install .
```### CLI Installation
Run on the command line:
```bash
Coming soon! Stay tuned for updates on CLI usage instructions.
```