sjsm

simple compression and code modification

Usage no npm install needed!

<script type="module">
  import sjsm from 'https://cdn.skypack.dev/sjsm';
</script>

README

sjsm

simple compression and code modification

npm install sjsm

and see example: https://github.com/fedor-elizarov/sjsm/blob/master/test.js

test: `see index.js

node test.js

see index.min.js`

this module just joke ::)

changelog

don't touch formating strings: var string = "I untouchable string ::)"; console.log("I too!");

clear "\n","\t"," " symbols

clear one line comments: //comment

clear multiline comments: /* comment cooooment */

dont delete symbol " " after the words: break,case,catch,const,continue, debugger,default,delete,do,else, finally,function,for,if,in,instaneof, let,new,return,switch,this,throw,try,typeof, var,void,while `

fix problem witch line comments // add support " ' " symbols

rewrite all code ::)