Giter Site home page Giter Site logo

kutils's Introduction

logo


What is KUtils?

KUtils is an open source collection of useful features written in Rhino JavaScript.

How can I use KUtils?

Add the KUtils source code to the top of your script. (use copy & paste)

All Methods

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)

KUtils 2.0 is Open!

[Download]

What's new?

Code clean-up and remove some functions.

License

                            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.

Happy Coding :)

kutils's People

Contributors

jisungbin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.