Comparing version 0.3.0 to 0.4.0
@@ -153,2 +153,6 @@ 'use strict'; | ||
if (runestone.postfix && runestone.postfix.text) { | ||
output = output + runestone.postfix.sequence + runestone.postfix.text + ANSIModes.reset; | ||
} | ||
console.log(output); | ||
@@ -209,2 +213,6 @@ } | ||
if (runestone.postfix) { | ||
runestone.postfix.sequence = forgeANSISequence(runestone.postfix); | ||
} | ||
return illumine; | ||
@@ -211,0 +219,0 @@ } |
{ | ||
"name": "igniculus", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "SQL Syntax Highlighter and Logger. Unadorned and customizable.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
# Igniculus | ||
SQL Syntax Highlighter and Logger. Unadorned and customizable. | ||
[![version](https://img.shields.io/npm/v/igniculus.svg?style=flat-square)](https://www.npmjs.com/package/igniculus) | ||
[![node](https://img.shields.io/node/v/igniculus.svg?style=flat-square)](https://nodejs.org/en/download/releases) | ||
[![downloads](https://img.shields.io/npm/dt/igniculus.svg?style=flat-square)](https://www.npmjs.com/package/igniculus) | ||
[![license](https://img.shields.io/npm/l/igniculus.svg?style=flat-square)](https://github.com/Undre4m/igniculus/blob/master/LICENSE) | ||
## Install | ||
@@ -57,2 +62,4 @@ | ||
- prefix.**replace** - Also, a _string_ or _regular expression_ can be provided and it will replace (if a prefix.**text** was given) or remove a prefix that matches such parameter. _E.g:_ [Sequelize](https://www.npmjs.com/package/sequelize) prefixes every _SQL statement_ with `Executing (default):` This is removed by **default** by the option `prefix: { replace: /.*?: / }` | ||
- options.**postfix** | ||
- postfix.**text** - A postfix can be appended to every log through this option. This postfix can be styled like any previous options. | ||
@@ -173,3 +180,4 @@ If defined, the _options_ argument takes precedence over _default_ options. If a rule or it´s style is missing it won't be applied. This allows to _"enable"_ or _"disable"_ certain syntax highlighting as you see fit. _[(Examples below)](https://www.npmjs.com/package/igniculus#examples)_ | ||
text: '(Sequelize)' | ||
} | ||
}, | ||
postfix: { text:'\r\n' } | ||
} | ||
@@ -197,3 +205,3 @@ ); | ||
- Custom rules | ||
- Postfix support | ||
- Selecting log stream _E.g:_ `process.stdout` | ||
@@ -200,0 +208,0 @@ ## Maintainers |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17835
184
211