Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@lotips/core

JiangWeixian65MIT0.10.0TypeScript support: included

utility function collections

jiangweixian, utils, lotips

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>

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