
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
hangul-search-js
Advanced tools
It allows you to search for simple Korean characters in the most consistent order regardless of the character assembly order.
npm i hangul-search-js
import { createSearch } from 'hangul-search-js'
const search = createSearch([
'λ‘―λ°μλ€λ§',
'μ νλΈ',
'νλ‘κ²μ΄λ¨Έ',
'κ°λ',
'λκ°'
])
const result = search('μγ΄')
// result: ['λ‘―λ°μλ€λ§', 'νλ‘κ²μ΄λ¨Έ', 'κ°λ', 'λκ°']
const resultExact = search('μγ΄', { exact: true })
// result: ['λ‘―λ°μλ€λ§']
const resultExact = search('λκ°', { exact: true, order: true })
// result: ['λκ°']
<script src="https://cdn.jsdelivr.net/npm/hangul-search-js/export/hangul-search.js"></script>
var createSearch = window.hangulSearch
var search = createSearch([
'λ‘―λ°μλ€λ§',
'μ νλΈ',
'νλ‘κ²μ΄λ¨Έ',
'κ°λ',
'λκ°'
])
var result = search('μγ΄')
// result: ['λ‘―λ°μλ€λ§', 'νλ‘κ²μ΄λ¨Έ', 'κ°λ', 'λκ°']
var resultExact = search('μγ΄', { exact: true })
// result: ['λ‘―λ°μλ€λ§']
var resultExact = search('λκ°', { exact: true, order: true })
// result: ['λκ°']
MIT Licensed.
FAQs
Simple Korean text search module
The npm package hangul-search-js receives a total of 4 weekly downloads. As such, hangul-search-js popularity was classified as not popular.
We found that hangul-search-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600Γ faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.