Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
console.log
ging done right, beautifully.
You don't have to write the 13 char long console.log()
anymore. Try:
lme.d("hello world");
lme
( logme )console.log()
or even console.log(chalk.red("hi"));
lme.line()
.objects
and arrays
. So that, you don't have to use JSON.stringify()
anymore.
npm install --save lme
lme.<status>(message);
const lme = require('lme');
lme.d("my kitty is pinky!"); // default style, used for anonymous outputs.
lme.e("Snap! something went wrong."); // used for logging errors.
lme.s("Oh yeah!"); // used for logging success.
lme.w("Attention! Thank you for your attention."); // used for logging warnings.
lme.line() // used to draw lines
lme.eline() // used to draw lines in error theme.
lme.sline() // used to draw lines in success theme.
Syntax : lme.<status>(message);
<status>
can have the following values:status | name | when to use | example |
---|---|---|---|
d | default | default output | lme.d("hi"); |
s | success | on success output | lme.s("hi"); |
e | error | on error-ed output | lme.e("hi"); |
w | warning | for warnings like output | lme.w("hi"); |
h | highlight | for highlighting an output | lme.h("hi"); |
where message
can be string
/ float
/ int
/ objects
. (note that javascript treats arrays
as objects
.)
lme.line()
Syntax : lme.line(character, length)
.
You can prefix d
, s
, e
, w
, h
to the line()
function to obtain the corresponding color scheme for your line. You can also simply use lme.line()
which has some default values as described below.
argument | type | purpose | default value |
---|---|---|---|
character | string | determines which character should be used for drawing lines | - |
length | integer | length of the line | 30 |
lme.line();
lme.eline("^");
lme.sline("@", 12);
lme.wline("#", 50);
status | name | when to use | example |
---|---|---|---|
line | default | default output | lme.line(); |
dline | same as line | default output | lme.d("hi"); |
sline | successe | on success output | lme.s("hi"); |
eline | error | on error-ed output | lme.e("hi"); |
wline | warning | for warnings like output | lme.w("hi"); |
hline | highlight | for highlighting an output | lme.h("hi"); |
MIT © Vajahath Ahmed
FAQs
Simply and beautifully log to console.
The npm package lme receives a total of 152 weekly downloads. As such, lme popularity was classified as not popular.
We found that lme 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
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.