Socket
Socket
Sign inDemoInstall

node-pickle

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-pickle

Convert between JSON object and python pickled object. It reads/wrie python pickled objects to Javascript objects using promise.


Version published
Maintainers
1
Install size
622 kB
Created

Readme

Source

node-pickle

Convert between JSON object and python pickled object. It reads/wrie python pickled objects to Javascript objects using promise. This package is based on mattrobenolt's node_pickle.

The functions are both promise based.

Usage

const nodePickle = require('node-pickle');

// Convert pickled object to JSON object
nodePickle.load(pickledData)
.then(data => ({
// data is a JSON object here
})

// Convert JSON object to pickled object
nodePickle.dump(jsonData)
.then(data => ({
// data is a pickled object here
})

Keywords

FAQs

Last updated on 07 Nov 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc