@lotips/core
v0.10.0
Published
utility function collections
Downloads
73
Readme
@lotips/core
utility for vanilla js
do-highlight
replace highlight
-> <mark>highlight</mark>
with with vanilla js.
doHighlight('hello world', 'world')
// hello <mark>world</mark>
do-search
search website content with keyword, and highlight it.
doSearch('world')
exports-template
generate package's exports field.
const exports = exportsTemplate({
names: ['index', 'ua', 'do-something/index']
})
ua
is-mobile
is-iOS
is-android