Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lme

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lme

Simply and beautifully log to console.

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
44
decreased by-56.44%
Maintainers
1
Weekly downloads
 
Created
Source

console.log ging done right, beautifully.

You don't have to write the 13 char long console.log() anymore. Try:

lme.d("hello world");

Why lme ( logme )

  • Simpler to use than console.log() or even console.log(chalk.red("hi"));
  • Automatically expands objects and arrays. So that, you don't have to use JSON.stringify() anymore.
  • Clean and semantically focused.
  • Actively maintained.
  • Consistent design for errors, warnings, successes etc.

Install

npm install --save lme

Usage

Syntax

lme.<status>(message);

Example

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.

APIs

Syntax : lme.<status>(message);

  • where <status> can have the following values:
statusnamewhen to useexample
ddefaultdefault outputlme.d("hi");
ssuccesseson success outputlme.s("hi");
eerroron error-ed outputlme.e("hi");
wwarningfor warnings like outputlme.w("hi");
hhighlightfor highlighting an outputlme.h("hi");

where message can be string / float / int / objects. (note that javascript treats arrays as objects.)

More configurations are on its way.
If you wish to file any feature/bugs, mention it on issues.
Enjoy.

License

MIT © Vajahath Ahmed

Keywords

FAQs

Package last updated on 21 Nov 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc