0.0.12 • Published 5 months ago

cypher-beautifier v0.0.12

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 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

5 months ago

0.0.11

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago

0.0.0

5 months ago