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

altjson

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

altjson

An alternative, more efficent, encoding for JSON.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

AltJSON.js

Build Status

Browser Support

Javascript implementation of AltJSON encoding. AltJSON is an alternative encoding for JSON designed to be more efficient while maintaining the same data model. Use JSON as your regular interface but speed it up when available using AltJSON.

More information about AltJSON is available here.

Usage

AltJSON.js works in node and in the browser. However it requires the Encoding API which is not implemented in all environments. In node the polyfill will be installed as a dependency but for browsers such as chrome a polyfill can be used.

require(["altjson"], function(AltJSON) {
	// Load via AMD.
});
// OR
var AltJSON = require("altjson"); // In node.
// OR
AltJSON; // When just included in a webpage.

AltJSON.encode([1,2,3]) //=> Uint8Array([0xC3,1,2,3])
AltJSON.decode(new Uint8Array([0x81])) //=> true

Keywords

FAQs

Package last updated on 09 Jun 2014

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