frictionlessdata / datapackage-js

A JavaScript library for working with Data Package.
http://frictionlessdata.io/
MIT License
42 stars 15 forks source link

Example for usage in browser #112

Closed samuelmr closed 4 years ago

samuelmr commented 4 years ago

Overview

The README shows one can load datapackage.js from a CDN:

<script src="//unpkg.com/datapackage/dist/datapackage.min.js"></script>

The following examples don't work in the browser since they use require() which is not supported by browsers.

It would be nice to have (e.g. in the examples folder) a complete HTML page demonstrating the usage in browser.


Please preserve this line to notify @roll (lead of this repository)

roll commented 4 years ago

Hi @samuelmr,

I've added an example - https://github.com/frictionlessdata/datapackage-js#browser

It's built using webpack so it works in browsers also.