Skip to content

afeiship/next-jjencode

Repository files navigation

next-jjencode

jjencode for next.

version license size download

installation

npm install -S @jswork/next-jjencode

usage

import '@jswork/next-jjencode';

const res = nx.jjencode('$', `console.log("Hello, JavaScript" )`, true);

// result
'\"+'+",$=~[];$={___:++$,$$$$:(![]+"")[$],__$:++$,$_$_:(![]+"")[$],_$_:++$,$_$$:({}+"")[$],$$_$:($[$]+"")[$],_$$:++$,$$$_:(!""+"")[$],$__:++$,$_$:++$,$$__:({}+"")[$],$$_:++$,$$$:++$,$___:++....

resources

license

Code released under the MIT license.