regexp-parser-literal
TypeScript icon, indicating that this package has built-in type declarations

1.1.38 • Public • Published

regexp-parser-literal

API

index.d.ts

import * as regexpp from 'regexpp2';
import { AST } from 'regexpp2';
export declare const EMOJI_REGEX: RegExp;
export declare const defaultRegExpParser: regexpp.RegExpParser;
export declare function createRegExpParser(options?: regexpp.RegExpParser.Options): regexpp.RegExpParser;
export declare function parseRegExp(input: string, objRegExpParser?: regexpp.RegExpParser): regexpp.AST.RegExpLiteral;
export declare function parseFlags(input: string, objRegExpParser?: regexpp.RegExpParser): regexpp.AST.Flags;
export declare function parsePattern(input: string, uFlag?: boolean | string, objRegExpParser?: regexpp.RegExpParser): regexpp.AST.Pattern;
export declare function fakePatternToRegExpLiteral(pattern: AST.Pattern | string, flags?: string | AST.Flags, objRegExpParser?: regexpp.RegExpParser): AST.RegExpLiteral;
export declare type IAstToStringOptions = {
    debugChanged?: boolean | number;
    noUniqueClass?: boolean;
    doUniqueClassEmoji?: boolean;
    sortClass?: boolean;
};
export declare function astToString(ast: AST.Element & INodePlus | AST.Node & INodePlus, options?: IAstToStringOptions): string;
export declare type INodePlus = {
    changed?: boolean;
    old_raw?: string;
};
export declare function array_unique<T>(arr: T[]): Partial<T>[];
import * as self from './index';
export default self;

Package Sidebar

Install

npm i regexp-parser-literal

Weekly Downloads

3,725

Version

1.1.38

License

ISC

Unpacked Size

42.4 kB

Total Files

6

Last publish

Collaborators

  • bluelovers