mirror of
https://github.com/titaniumnetwork-dev/Ultraviolet.git
synced 2025-05-17 05:20:01 -04:00
uv
This commit is contained in:
parent
b9b6aee734
commit
82f5f76588
66 changed files with 74967 additions and 1 deletions
27
index.js
Normal file
27
index.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
import Ultraviolet from './rewrite/index.js'
|
||||
|
||||
import { generate } from 'esotope-hammerhead';
|
||||
import { parseScript } from 'meriyah';
|
||||
|
||||
const uv = new Ultraviolet({
|
||||
meta: {
|
||||
url: new URL('https://www.google.com'),
|
||||
base: new URL('https://www.google.com')
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
console.log(
|
||||
uv.css.recast('body { background: url ( \n " coohcie " ) }')
|
||||
)
|
||||
|
||||
*/
|
||||
|
||||
console.log(
|
||||
uv.rewriteJS('window.eval(saasdsd)')
|
||||
)
|
||||
|
||||
/*
|
||||
const used = process.memoryUsage().heapUsed / 1024 / 1024;
|
||||
console.log(`The script uses approximately ${Math.round(used * 100) / 100} MB`);
|
||||
*/
|
Loading…
Add table
Add a link
Reference in a new issue