@types/bbob__parser
Advanced tools
| { | ||
| "name": "@types/bbob__parser", | ||
| "version": "3.0.2", | ||
| "description": "TypeScript definitions for @bbob/parser", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bbob__parser", | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "shme-e", | ||
| "githubUsername": "shme-e", | ||
| "url": "https://github.com/shme-e" | ||
| } | ||
| ], | ||
| "version": "4.0.0", | ||
| "description": "Stub TypeScript definitions entry for @bbob/parser, which provides its own types definitions", | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/bbob__parser" | ||
| }, | ||
| "scripts": {}, | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "@types/bbob__plugin-helper": "*" | ||
| "@bbob/parser": "*" | ||
| }, | ||
| "typesPublisherContentHash": "38460084e287244b2d5fba42c5d64cc430e67355480e617184423ad3495e1a69", | ||
| "typeScriptVersion": "4.5" | ||
| "deprecated": "This is a stub types definition. @bbob/parser provides its own type definitions, so you do not need this installed." | ||
| } |
@@ -1,15 +0,3 @@ | ||
| # Installation | ||
| > `npm install --save @types/bbob__parser` | ||
| This is a stub types definition for @types/bbob__parser (https://github.com/JiLiZART/bbob). | ||
| # Summary | ||
| This package contains type definitions for @bbob/parser (https://github.com/JiLiZART/bbob). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bbob__parser. | ||
| ### Additional Details | ||
| * Last updated: Mon, 20 Nov 2023 23:36:23 GMT | ||
| * Dependencies: [@types/bbob__plugin-helper](https://npmjs.com/package/@types/bbob__plugin-helper) | ||
| # Credits | ||
| These definitions were written by [shme-e](https://github.com/shme-e). | ||
| @bbob/parser provides its own type definitions, so you don't need @types/bbob__parser installed! |
| export { TagNode } from "@bbob/plugin-helper"; | ||
| export { default, parse } from "./parse"; |
| import { Token, TOKEN_TYPE } from "./Token"; | ||
| export function createToken(type: TOKEN_TYPE, value: string, line?: number, row?: number): Token; | ||
| export class Lexer { | ||
| tokenize(): readonly Token[]; | ||
| isTokenNested(token: Token): boolean; | ||
| } | ||
| export function createLexer(buffer: string, options?: { | ||
| onToken?(token: Token): void; | ||
| openTag?: string; | ||
| closeTag?: string; | ||
| enableEscapeTags?: boolean; | ||
| contextFreeTags?: readonly string[]; | ||
| }): Lexer; |
| import { Node } from "@bbob/plugin-helper"; | ||
| import { createLexer } from "./lexer"; | ||
| export function parse(input: string, opts?: { | ||
| createTokenizer?(): typeof createLexer; | ||
| onlyAllowTags?: readonly string[]; | ||
| contextFreeTags?: readonly string[]; | ||
| enableEscapeTags?: boolean; | ||
| openTag?: string; | ||
| closeTag?: string; | ||
| }): Node[]; | ||
| export default parse; |
| export class Token { | ||
| constructor(type?: TOKEN_TYPE, value?: string, line?: number, row?: number); | ||
| [TYPE_ID]?: TOKEN_TYPE; | ||
| [VALUE_ID]?: string; | ||
| [LINE_ID]?: number; | ||
| [COLUMN_ID]?: number; | ||
| isEmpty(): boolean; | ||
| isText(): boolean; | ||
| isTag(): boolean; | ||
| isAttrName(): boolean; | ||
| isAttrValue(): boolean; | ||
| isStart(): boolean; | ||
| isEnd(): boolean; | ||
| getName(): string; | ||
| getValue(): string; | ||
| getLine(): number; | ||
| getColumn(): number; | ||
| toString(): string; | ||
| } | ||
| export const TYPE_ID = "type"; | ||
| export const VALUE_ID = "value"; | ||
| export const LINE_ID = "line"; | ||
| export const COLUMN_ID = "row"; | ||
| export const TYPE_WORD = 1; | ||
| export const TYPE_TAG = 2; | ||
| export const TYPE_ATTR_NAME = 3; | ||
| export const TYPE_ATTR_VALUE = 4; | ||
| export const TYPE_SPACE = 5; | ||
| export const TYPE_NEW_LINE = 6; | ||
| export type TOKEN_TYPE = | ||
| | typeof TYPE_WORD | ||
| | typeof TYPE_TAG | ||
| | typeof TYPE_ATTR_NAME | ||
| | typeof TYPE_ATTR_VALUE | ||
| | typeof TYPE_SPACE | ||
| | typeof TYPE_NEW_LINE; | ||
| export default Token; |
| import { Node } from "@bbob/plugin-helper"; | ||
| export interface Options { | ||
| onSkip: boolean; | ||
| } | ||
| export interface CharGrabber { | ||
| skip(num: number, silent: boolean): void; | ||
| hasNext(): boolean; | ||
| getCurr(): string; | ||
| getRest(): string; | ||
| getNext(): string | null; | ||
| getPrev(): string | null; | ||
| isLast(): boolean; | ||
| includes(val: string): boolean; | ||
| grabWhile(cond: (curr: string) => boolean, silent: boolean): string; | ||
| grabN(num?: number): string; | ||
| substrUntilChar(char: string): string; | ||
| } | ||
| /** | ||
| * Creates a grabber wrapper for source string, that helps to iterate over string char by char | ||
| */ | ||
| export function createCharGrabber(source: string, options?: Options): CharGrabber; | ||
| export function trimChar(str: string, charToRemove: string): string; | ||
| export function unquote(str: string): string; | ||
| export type NodeListValue = Node; | ||
| export interface NodeList { | ||
| push(value: NodeListValue): void; | ||
| toArray(): NodeListValue[]; | ||
| getLast(): NodeListValue | null; | ||
| flushLast(): NodeListValue | boolean; | ||
| } | ||
| export function createList(values?: NodeListValue[]): NodeList; |
Deprecated by its maintainer
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1757
-68.37%3
-62.5%0
-100%2
100%1
Infinity%2
100%3
-81.25%1
Infinity%1
Infinity%+ Added
+ Added
- Removed
- Removed