https://github.com/olebedev/pickle.js
JavaScript implementation of the Python pickle format. Fork.
https://github.com/olebedev/pickle.js
Last synced: 14 days ago
JSON representation
JavaScript implementation of the Python pickle format. Fork.
- Host: GitHub
- URL: https://github.com/olebedev/pickle.js
- Owner: olebedev
- Created: 2011-11-24T11:17:58.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T11:18:11.000Z (over 6 years ago)
- Last Synced: 2025-10-05T20:59:43.327Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Pickle.js is a JavaScript implementation of the Python pickle format.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It supports pickles containing a cross-language subset of the primitive types.
Fokred from Frank Salim's `google code `_ repo.
For what? To added support for ``LONG`` and ``UNICODE`` data type.
If you would like to see how it works, open ``index.html`` in your browser
and press the button.
API
---
The API for pickle.js was chosen to match the Python pickle module.
``pickle.dumps(object) -> string``
``pickle.loads(string) -> object``
For more information click `here `_.
Copyright (c) 2008 Frank Salim
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.