Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "jsoun", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Ever wanted to put json in a url and thought it was ugly? JSOUN (Javascript Object URL Notation) makes it slightly better", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10
test.js
var jsoun = require('./index.js') | ||
var compact = '{"store":{"book":[{"category":"reference","author":"Nigel Rees","title":"Sayings of the Century","price":8.95},{"category":"fiction","author":"Evelyn Waugh","title":"Sword of Honour","price":12.99},{"category":"fiction","author":"J. R. R. Tolkien","title":"The Lord of the Rings","isbn":"0-395-19395-8","price":22.99}],"bicycle":{"color":"red","price":19.95}}}' | ||
var magic = jsoun(compact) | ||
var jsoun = jsoun(compact) | ||
var url1 = encodeURI(compact) | ||
var url2 = encodeURI(magic) | ||
var url2 = encodeURI(jsoun) | ||
@@ -14,7 +14,7 @@ console.log('Compact JSON:') | ||
console.log(url1.length+' chars') | ||
console.log('\nMagic JSON:') | ||
console.log(magic) | ||
console.log(magic.length+' chars') | ||
console.log('\nJSOUN:') | ||
console.log(jsoun) | ||
console.log(jsoun.length+' chars') | ||
console.log('\nAfter URL Encode:') | ||
console.log(url2) | ||
console.log(url2.length+' chars') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
5201
4
1
75