Skip to content
Snippets Groups Projects
Commit 708d9059 authored by Tomasz Ducin's avatar Tomasz Ducin
Browse files

adding cdnjs section in the readme.md

parent a1be5c77
Branches
Tags
No related merge requests found
......@@ -17,6 +17,7 @@ Use [JSON Schema](http://json-schema.org/) along with fake generators to provide
- [JSON-schema-faker](#fake-your-schemas)
- [Online demo](#online-demo)
- [Install](#install)
- [cdnjs](#cdnjs)
- [Overview](#overview)
- [Example usage](#example-usage)
- [Gist demos](#gist-demos)
......@@ -45,6 +46,17 @@ Install `json-schema-faker` with npm:
npm install json-schema-faker --save-dev
### cdnjs
JSON-Schema-faker is available at [cdnjs.com](https://www.cdnjs.com/libraries/json-schema-faker). This means you can just include the script file into your HTML:
# remember to update the version number!
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/json-schema-faker/0.2.8/json-schema-faker.min.js"></script>
It will be fetched from the [Content Delivery Network](https://en.wikipedia.org/wiki/Content_delivery_network) without installing any node.js package.
You can see [an example JS fiddle based on `jsf` loaded from cdnjs](https://jsfiddle.net/ftzhnmzq/).
## Overview
JSON-Schema-faker (or `jsf` for short) combines two things:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment