hgtxtsort-jsdelivr
v0.1.4
Published
Browser-ready text sorting bundle for Hangul, Hanja, English, numbers, and emoji filters.
Downloads
50
Maintainers
Readme
hgtxtsort-jsdelivr
hgtxtsort-jsdelivr is a browser bundle for text sorting and character-type filtering.
Included file
dist/hgtxtsort.cdn.jssrc/hgtxtsort_manual.html
Manual page
Open hgtxtsort_manual.html in a browser to see beginner, intermediate, and advanced usage examples.
Local build
npm run buildLocal pack check
npm pack --dry-runBrowser usage
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/hgtxtsort.cdn.js"></script>
<script>
const opt = new HgTxtSort.SortTextOpt();
opt.opt_break_unit = HgTxtSort.constants.__id_opt_unit_word__;
opt.opt_chartype = HgTxtSort.constants.__id_opt_chartype_only_hangul__;
const result = HgTxtSort.sortText("한글 abc 漢字", opt);
console.log(HgTxtSort.formatSortedList(result));
</script>Publish flow
npm publish --access publicIf the package name is already taken on npm, update the name field in package.json before publishing.
