In case of gem file, I can use javascript library after install gem file but I don't know how to use this library I found!
(Here is the link of the library in github) https://github.com/teampopong/hangul-jamo-js
This one describes how to use code. I used 'casperjs' library thorough installing. but this one is new for me...there is no gem file..
I'd like to use this library to split my korean string object in my javascript file!
=====================Edit============================================
I want to use hangul-jamo-js's method in my javascript file like this
this is one of my javascirpt file including casperjs code
//= require hangul-jamo.js
var a = HANGUL.toChosungs('강철');
***there is underline on HANGUL when I put this code***
var words = [];
var casper = require('casper').create();
. . And this is my application.html.erb head section
<title>Workspace</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<script src="https://raw.githubusercontent.com/teampopong/hangul-jamo-js/master/hangul-jamo.js"></script>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
I wrote all of code refer to answers below but In my javascript file, it said "HANGUL is not defined"...
but when I put all of hangul-jamo-js codes in my javascript file it defined...
How can I use this hangul-jamo-js codes in my javascript?? I have to run my code through this command
parkhk1757@wow:~/workspace/app/assets/javascripts $ casperjs myjavascript.js