Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsoun

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsoun - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

README.md

2

package.json
{
"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",

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')
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc