包详细信息

URLON

vjeux15不推荐使用2.0.0

Package renamed to lower-cased 'urlon' to follow npm requirements.

URL Object Notation. JSON-like encoding for URLs

urlon, json, notation, url

自述文件

URL Object Notation

An Object Notation like JSON but for URLs. Read the full explanation on my blog.

Get URLON

You first need to enable URLON.

NPM

URLON is on [NPM] (http://search.npmjs.org/#/URLON).

npm install URLON
var URLON = require('URLON');

Webpage

<script src="https://raw.github.com/vjeux/URLON/master/src/urlon.js"></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}}}