New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

python-rencode

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

python-rencode

Arbitrary data encoder/decoder that matches python rencode

  • 1.4.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25
increased by1150%
Maintainers
1
Weekly downloads
 
Created
Source

python-rencode

Arbitrary data encoder/decoder that matches python rencode.

Coverage Status

Usage

npm install python-rencode
const { encode, decode } = require('python-rencode');

// Could be basically any data that would convert correctly to JSON
const thing = 1;

// Encode some data into a Buffer
const encoded = encode(thing);

// Decode a Buffer into some data
const decoded = decode(encoded);

Install as Git Dependency

If you'd rather not use the versions published to npm, you can easily install from github directly with:

npm install cinderblock/python-rencode         # Defaults to master
npm install cinderblock/python-rencode#branch  # Use a named branch
npm install cinderblock/python-rencode#v1.4.0  # Use a tagged version
npm install cinderblock/python-rencode#hash    # Use a hash directly

Change Log

v1.4.0

v1.4.0 slightly changed the API.

  • undefined has been replaced with null.
  • undefined is no longer allowed as a value and will now throw. This behavior might change in the future. Make an issue to discuss.

v1.3.0

  • Export data type: RencodableData

v1.2.0

  • Add TypeScript Support

v1.1.0

  • Decode UTF8 by default

Keywords

FAQs

Package last updated on 27 Dec 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc