dumpling

Convert serialized PHP session array into object.

Usage no npm install needed!

<script type="module">
  import dumpling from 'https://cdn.skypack.dev/dumpling';
</script>

README

Dumpling

Sometimes you have to deal with crappy things like serialized PHP sessions in your node app, because I guess PHP is still a thing (seriously).

Dumpling unserializes it. There's no way to put it back, and there probably will never be. Sorry about that. There's also no recursion (fyi).

Anyway...

Usage

var dumpling = require('dumpling')

var serial = 'some awful serialized php session'

var output = dumpling(serial)

Testing

npm test

License

MIT/X11

That's it. Hope your PHP days are over.