This is a fairly minimal URL parser. It relies on JavaScript APIs provided by
the browser (DOM
and RegExp
), and has no external JavaScript or PureScript
dependencies, other than PureScript
prelude.
It has not been extensively tested, and likely is not perfect, so if you notice any issues, please report them. There are some existing unit tests for URLs, which can be easily extended by adding your own URLs.
bower install purescript-url-validator
Module documentation is published on Pursuit.
Do npm run testbrowser
then open up dist/index.html
with your browser's web
console open.
Currently not working, but could be run with npm run test