
Research
/Security News
Popular Go Decimal Library Targeted by Long-Running Typosquat with DNS Backdoor
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.
@types/rison
Advanced tools
npm install --save @types/rison
This package contains type definitions for Rison (https://github.com/Nanonid/rison).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/rison.
// Type definitions for Rison
// Project: https://github.com/Nanonid/rison
// Definitions by: Andrei Kurosh <https://github.com/impworks>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export = rison;
export as namespace rison;
declare var rison: IRison;
interface IRison {
/**
* Rison-encodes a javascript structure.
* @param obj Object to encode.
* @returns {} Encoded string.
*/
encode(obj: any): string;
/**
* Rison-encodes a javascript object without surrounding parens (O-Rison).
* @param obj Object to encode.
* @returns {} Encoded string.
*/
encode_object<T>(obj: T): string;
/**
* Rison-encodes a javascript array without surrounding parens (A-Rison).
* @param obj Object to encode.
* @returns {} Encoded string.
*/
encode_array<T>(arr: T[]): string;
/**
* Rison-encodes and then url-escapes a javascript structure.
* @param obj Object to encode.
* @returns {} Encoded string.
*/
encode_uri(obj: any): string;
/**
* Parses a Rison string into a javascript structure.
* @param encoded Encoded string.
* @returns {} Resulting array or object.
*/
decode<T>(encoded: string): T;
/**
* Parses a O-Rison string into a javascript object.
* @param encoded Encoded string.
* @returns {} Resulting object.
*/
decode_object<T>(encoded: string): T;
/**
* Parses a A-Rison string into a javascript array.
* @param encoded Encoded string.
* @returns {} Resulting array.
*/
decode_array<T>(encoded: string): T[];
}
risonThese definitions were written by Andrei Kurosh.
FAQs
TypeScript definitions for rison
The npm package @types/rison receives a total of 143,183 weekly downloads. As such, @types/rison popularity was classified as popular.
We found that @types/rison demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.

Research
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.