Convert serialized PHP session array into object.
Want to see pretty graphs? Log in now!
npm install dumpling
|5||downloads in the last week|
|21||downloads in the last month|
|Last Published By|
|Version||0.0.5 last updated a year ago|
|Keywords||php, session, serialized, ender|
var dumpling = require('dumpling') var serial = 'some awful serialized php session' var output = dumpling(serial)
The server-side syntax above is also supported in Ender for client-side usage.
If you are using the global
$ object in Ender, you can also do the following:
var output = $.dumpling(string)
There's also support for jQuery via a jQuery plugin. This is in the build
directory. Use either
dumpling-jquery.js or the minified
Note: this module is titled dumpling because I was eating Chinese food when I wrote it.