-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the library in the browser? #11
Comments
Use browserify. (edit: I browserified $ npm install -g browserify
$ browserify ./json-schema-generator/index.js -s jsonSchemaGenerator > jsg-browser.js Then in a page with var schema = jsonSchemaGenerator({ object: { to: { schemafiy: true } } });
// check:
console.log(JSON.stringify(schema, null, 2)); I just confirmed that this works. |
Thank you. Sent from my iPhone
|
Sorry @wpoosanguansit - Been very busy. Thanks @nickyout for following up. Perhaps I'll find sometime to have it readily available. Also, good to know it works with Browserify :-) |
Hi,
Is it possible to use the library in the browser? If yes, how do I package all the js file into a single for the purpose? Thanks for your help.
The text was updated successfully, but these errors were encountered: