Package Exports
- urlon
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (urlon) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
URL Object Notation
An Object Notation like JSON but for URLs. Read the full explanation on @vjeux blog: http://blog.vjeux.com/2011/javascript/urlon-url-object-notation.html
Note that format is slightly changed since article was published, but main idea remains the same.
Getting started
NPM
URLON is on NPM.
npm install urlonvar URLON = require('urlon');UMD build using <script>
<script src="https://unpkg.com/urlon/dist/urlon.umd.js"></script>
<script>
urlon // urlon.stringify() or urlon.parse()
</script>Usage
stringify
URLON.stringify({"table":{"achievement":{"column":"instance","ascending":true}}})
// Output: '$table$achievement$column=instance&ascending:true'parse
URLON.parse('$table$achievement$column=instance&ascending:true')
// Output: {"table":{"achievement":{"column":"instance","ascending":true}}}Projects using URLON
- url-mapper -
@cerebral/routerdefault mapper for URLs
Changelog
See releases