0.0.12 • Published 10 months ago

cypher-beautifier v0.0.12

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

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.3

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago

0.0.0

10 months ago