UNPKG

@neo4j/cypher-builder

Version:

A programmatic API for building Cypher queries for Neo4j

13 lines (12 loc) 375 B
"use strict"; /* * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] */ Object.defineProperty(exports, "__esModule", { value: true }); exports.padBlock = padBlock; function padBlock(block, spaces = 2) { const paddingStr = " ".repeat(spaces); const paddedNewLines = block.replaceAll("\n", `\n${paddingStr}`); return `${paddingStr}${paddedNewLines}`; }