
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
console-next
Advanced tools
This allows you to do some weird and useless in the browser's devtools.
<script src="https://unpkg.com/console-next"></script>
npm i console-next
import 'console-next'
This methods help to you install npm packages in the devtools
console.npm('module_name',{
type?: 'module'
})
console.npm('loadsh@0.0.4')
console.npm('https://unpkg.com/loadsh@0.0.4/lodash.js')
(async function () {
await console.npm("loadsh")
console.log(_.random(5)) //2
})()
It can help you print out color information in the devtools
console.color([
{
color?: string,
content?: any,
backgroundColor?: string
}
])
console.color([
{
color: 'red',
content: 'red',
backgrounColor: 'rgb(0, 255, 0)'
},
{
color: 'rgb(0, 255, 0)',
content: 'green'
},
{
color: '#000FFF',
content: 'blue'
}
])
if you want to print images in the devtools, let's use it
console.img(url, {
width?: number,
height?: number
})
Example:
console.img('https://static.npmjs.com/58a19602036db1daee0d7863c94673a4.png', { width: 40, height: 40 })
If you still want to watch video in devtools, you must try it
console.video(url, {
width?: number,
height?: number,
loop?: boolean
})
Example: Play "Big Buck Bunny" in console!
console.video(
// from https://en.wikipedia.org/wiki/Big_Buck_Bunny
'https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.480p.vp9.webm',
{ width: 400, height: 200 }
)
This methods allows you webpage as editor
If no arguments are passed, all webpage will as editor
console.edit()
Of course, you can also pass parameters and select a DOM as the editor
console.edit('#app')
This methods will print dom elements in devtools
If no arguments are passed, will print 'document.body'
console.dom()
Of course, you can also pass parameters and select a DOM to print
console.dom('#app')
a loading gif
console.loading('loading...')
just a progressbar in devtools
console.progress(percentage: number, callback: () => percentage, ms: number)
Example: The progress bar increases by 5 every 200 milliseconds
{
let i = 5
console.progress(i, () => i += 5, 200)
}
FAQs
This allows you to do some weird and useless in the browser's devtools
We found that console-next 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.