From 55fdf6e143203a0cd0a500b02f457916e18a9fe3 Mon Sep 17 00:00:00 2001 From: mitsugu oyama Date: Mon, 25 Oct 2010 20:05:11 +0900 Subject: add tohex.js --- tohex.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 tohex.js (limited to 'tohex.js') diff --git a/tohex.js b/tohex.js new file mode 100644 index 0000000..a75898d --- /dev/null +++ b/tohex.js @@ -0,0 +1,39 @@ +// INFO // +var INFO = + + Mitsugu Oyama + MIT + + Convert to hex code from string by this plugin. + + 'tohex' + :tohex + + Convert to hex code from string by this plugin. + If you use i_love_echo.js, you should not use tohex plugin. + + +; + +commands.addUserCommand( + ['tohex'], + 'convert to hex code from charactor', + function(args){ + if(1!=args.length){ + liberator.echoerr('argument error'); + return false; + } + let str=''; + let max=args[0].length; + for(let i=0;i
Convert to hex code from string by this plugin.
If you use i_love_echo.js, you should not use tohex plugin. +