Detalhes do pacote

@lotips/core

JiangWeixian34MIT0.10.0

utility function collections

jiangweixian, utils, lotips

readme (leia-me)

@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