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

@types/clarinet

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/clarinet

TypeScript definitions for clarinet

  • 0.12.3
  • ts4.5
  • ts4.6
  • ts4.7
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • ts5.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
25K
decreased by-2.23%
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/clarinet

Summary

This package contains type definitions for clarinet (https://github.com/dscape/clarinet).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/clarinet.

index.d.ts

/// <reference types="node"/>

import { Stream } from "stream";

export function parser(opt?: Options): CParser;
export function createStream(opt?: Options): CStream;

export interface Options {
    trim?: boolean | undefined;
    normalize?: boolean | undefined;
}

export class CParser {
    line: number;
    column: number;
    position: number;
    onvalue: (value: string | boolean | null) => void;
    onkey: (key: string) => void;
    onopenobject: (key: string) => void;
    oncloseobject: () => void;
    onopenarray: () => void;
    onclosearray: () => void;
    onend: () => void;
    onerror: (e: Error) => void;
    onready: () => void;
    constructor(opt?: Options);
    end(): void;
    write(chunk: string): void;
    resume(): void;
    close(): void;
}

export class CStream extends Stream {
    _parser: CParser;
    constructor(opt?: Options);
    destroy(): void;
    end(chunk: string): void;
    on(ev: string, listener: (...args: any[]) => void): this;
}

export const MAX_BUFFER_LENGTH: number;
export const DEBUG: boolean;
export const INFO: boolean;
export const EVENTS: string[];

export const STATE: {
    "0": string;
    "1": string;
    "10": string;
    "11": string;
    "12": string;
    "13": string;
    "14": string;
    "15": string;
    "16": string;
    "17": string;
    "18": string;
    "19": string;
    "2": string;
    "20": string;
    "21": string;
    "22": string;
    "23": string;
    "3": string;
    "4": string;
    "5": string;
    "6": string;
    "7": string;
    "8": string;
    "9": string;
    BACKSLASH: number;
    BEGIN: number;
    CLOSE_ARRAY: number;
    CLOSE_KEY: number;
    CLOSE_OBJECT: number;
    END: number;
    FALSE: number;
    FALSE2: number;
    FALSE3: number;
    FALSE4: number;
    NULL: number;
    NULL2: number;
    NULL3: number;
    NUMBER_DECIMAL_POINT: number;
    NUMBER_DIGIT: number;
    OPEN_ARRAY: number;
    OPEN_KEY: number;
    OPEN_OBJECT: number;
    STRING: number;
    TEXT_ESCAPE: number;
    TRUE: number;
    TRUE2: number;
    TRUE3: number;
    VALUE: number;
};

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: @types/node

Credits

These definitions were written by corno.

FAQs

Package last updated on 07 Nov 2023

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