@lotips/core
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

@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

Package Sidebar

Install

npm i @lotips/core

Weekly Downloads

3

Version

0.10.0

License

MIT

Unpacked Size

99.5 kB

Total Files

21

Last publish

Collaborators

  • qidanta