Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@types/json-to-ast
Advanced tools
TypeScript definitions for json-to-ast
npm install --save @types/json-to-ast
This package contains type definitions for json-to-ast (https://github.com/vtrushin/json-to-ast).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/json-to-ast.
declare namespace parse {
interface Options {
/**
* Appends location information.
*
* @default true
*/
loc?: boolean | undefined;
/**
* Appends source information to node’s location.
*
* @default null
*/
source?: string | undefined;
}
type ValueNode = ObjectNode | ArrayNode | LiteralNode;
interface Position {
line: number;
column: number;
offset: number;
}
interface Location {
start: Position;
end: Position;
source: string | null;
}
interface ASTNode {
type: string;
loc?: Location | undefined;
}
interface ObjectNode extends ASTNode {
type: "Object";
children: PropertyNode[];
}
interface PropertyNode extends ASTNode {
type: "Property";
key: IdentifierNode;
value: ValueNode;
}
interface IdentifierNode extends ASTNode {
type: "Identifier";
value: string;
raw: string;
}
interface ArrayNode extends ASTNode {
type: "Array";
children: ValueNode[];
}
interface LiteralNode extends ASTNode {
type: "Literal";
value: string | number | boolean | null;
raw: string;
}
}
declare function parse(json: string, settings?: parse.Options): parse.ValueNode;
export = parse;
export as namespace jsonToAst;
These definitions were written by ExE Boss.
FAQs
TypeScript definitions for json-to-ast
The npm package @types/json-to-ast receives a total of 2,390 weekly downloads. As such, @types/json-to-ast popularity was classified as popular.
We found that @types/json-to-ast 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.