
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
sql-log-prettifier
Advanced tools
SQL query prettifier for your favorite logger
npm install sql-log-prettifier
# or
yarn add sql-log-prettifier
In your project require or import sql-log-prettifier
const { prettify } = require('sql-log-prettifier');
// import { prettify } from 'sql-log-prettifier';
const unformattedAndUglySql = `SELECT * FROM custom_table WHERE id = 1 AND name = 'Test'`;
console.log(prettify(unformattedAndUglySql));
Output will look something like this:
prettify
function accepts settings
as the second argument.
Default settings are:
const defaultSettings = {
format: true,
noColors: false,
settings: {
functions: {
color: '#ff5555',
modifiers: ['bold'],
},
keywords: {
color: '#ff5555',
modifiers: ['bold'],
},
operators: {
color: '#91B859',
modifiers: ['bold'],
},
strings: {
color: '#FFFFF',
},
numbers: {
color: '#50fa7b',
},
},
};
pino
, winston
)sql-log-prettifer
is built with tsdx
.
# Running examples
npm run start
# Running tests
npm run test
# Running build
npm run build
All contributions are welcome.
MIT @ Zdravko Ćurić (zcuric)
FAQs
SQL query prettifier for your favorite logger
We found that sql-log-prettifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.