You can see
KUtils 2.0
preview atDev
branch!
KUtils is an open source collection of useful features written in Rhino JavaScript.
Add the KUtils source code to the top of your script. (use copy & paste)
String.prototype
- replaceAll(@String ori, @String change) {String}
- replaceLast(@String ori, @String change) {String}
- contains(@String content) {boolean}
- checkSpell() {String}
- trimAllLine() {String}
- toInt() {int; throwable Exceoption}
- toBoolean() {boolean; throwable String}
- removeHtmlTag() {String}
- kotlin2js() {String}
Array.prototype
- size() {int}
- isEmpty() {boolean}
- isNotEmpty() {boolean}
- contains(@String content) {boolean}
- remove(@Object element, @boolean removeAll = false) {void}
KUtils
- save(@String path, @String content, @boolean createRootFolder = false) {void}
- read(@String path, @Object notExistReturn) {String; can Object(noExistReturn)}
- makeFolder(@String path) {boolean}
- removeFolder(@String path) {boolean}
- makeFile(@String path) {boolean}
- getHtml(@String address) {String; throwable Exception}
- makeRandom(@int max, @int min) {int}
- fastLog(@String content) {void}
- readLog() {String}
- splitKor(@String text) {String} (Experimental)
- joinKor(@String text) {String} (Experimental)
- similarityKor(@String text, @String text2) {int} (Experimental)
- kor2eng(@String text) {String} (Experimental)
- eng2kor(@String text) {String} (Experimental)
Copyright 2020 SungBin
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.