Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Sometimes you have to deal with things like serialized PHP sessions in Javascript apps, because I guess PHP still is a thing in parts of the world.
Dumpling unserializes the PHP session string into a Javascript object. There is currently not any support for recursion.
###Usage #####Server-side
var dumpling = require('dumpling')
var serial = 'some awful serialized php session'
var output = dumpling(serial)
#####Client-side 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 dumpling-jquery.min.js
Usage is:
<script src="jquery.js"></script>
<script src="dumpling-jquery.js"></script>
<script type="text/javascript">
var output = $.dumpling(php_serialized_session)
</script>
###Testing
npm test
###License MIT/X11
Note: this module is titled dumpling because I was eating Chinese food when I wrote it.
FAQs
Convert serialized PHP session array into object.
The npm package dumpling receives a total of 6 weekly downloads. As such, dumpling popularity was classified as not popular.
We found that dumpling demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.