0.0.12 • Published 8 months ago

cypher-beautifier v0.0.12

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
8 months ago

Cypher Beautifier

HitCount

A simple NPM package that formats and beautifies Cypher queries for improved readability

NPM

https://nodei.co/npm/cypher-beautifier.png?downloads=true&downloadRank=true&stars=true

Installation

npm install cypher-beautifier

Usage

import beautifyCypher from "cypher-beautifier";

const query = `
    match (n) where n.name = "Bob" return n limit 1
`;

const formatted = beautifyCypher(query);

console.log(formatted);

/*
MATCH (n)
WHERE n.name = "Bob"
RETURN n
LIMIT 1
 */

API

interface IProps {
  parseStrings?: boolean;
}
declare function beautifyCypher(query: string, options?: IProps): string;
export default beautifyCypher;
OptionTypeDescriptionDefault
parseStringsbooleanIf true formats code inside quotation marks ' and "false
0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago

0.0.0

8 months ago