cutaway v2.0.3
about
Provides HTML mirroring of browser console logs. Intrusively somewhat console.log()
is redeclared in order to echo the original output inside of a <pre>
tag added at the very top of the document.body
containing the script carrying out the logging. Ties in nicely with tapeless and kpow for client side TAP reporting.
setup
Download from the npm registry:
# Add to package.json
npm install cutaway
Source from an import map to use with Deno or in-browser directly:
{
"imports": {
"cutaway": "https://thewhodidthis.github.io/cutaway/main.js"
}
}
usage
Include for side effects only. For example,
// Just an iife
import "https://esm.sh/cutaway@2.0.1"
// Say hi in HTML
console.log("coucou")
see also
2 years ago
2 years ago
2 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago