Skip to content

idjem/serialize-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

serialize-php

Build Status Version License

Javascript tool to:

  • unserialize php serialized data.
  • serialize data the way php does.

Installation

Node.js

Install from npm:

npm install serialize-php

Usage

Serialize

var serialize = require("serialize-php").serialize;
var result = serialize({key : "test serialize"})
console.log(result);
//a:1:{s:3:"key";s:14:"test serialize";}

Unserialize

var unserialize = require("serialize-php").unserialize;
var result      = unserialize("a:1:{s:3:\"key\";s:16:\"test unserialize\"}");
console.log(result.key);
//test unserialize

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published