1.0.0 • Published 7 years ago

ultra-console v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

ultra-console

A console that expands the console of chrome.

Usage

require('ultra-console');

console.styleText({
  text: 'hello ultra',
  style: 'font-size: 20px'
})

Api

console.styleText(option)

  • option <object>
    • text <string>
    • style <string>

For example:

console.styleText({
  text: 'hello ultra',
  style: 'font-size: 20px'
})

console.styleSupport

For example:

To show the style that console.log support:

console.styleSupport()

console.img(option)

  • option <object>
    • url <string>
    • width <number>
    • height <number>
    • exStyle <string>

For example, a simple sample:

// initial value: width=100, height=100, exStyle=''
console.img({
  url: 'http://img.jpg',
});

a multiple sample:

console.img({
  url: 'http://img.jpg',
  width: 200,
  height: 200,
  exStyle: 'background-size: cover'
});
1.0.0

7 years ago