ultra-console
v1.0.0
Published
to expand the console of Chrome
Downloads
2
Readme
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>
- text
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>
- url
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'
});