/js-ant

js-ant

Primary LanguageJavaScriptMIT LicenseMIT

js-ant

JavaScript

Install

$ npm i js-antd -S
# or
$ yarn add js-antd

Usage

Markdown

  • 支持描点定位
  • a 链接 _blank 跳转
import { markdown } from 'js-ant'

const result = markdown.render('## Markdown')

Date

import { formatDate, formatDateTime, getWeek } from 'js-ant'

// YYYY-MM-DD 2020-11-11
formatDate(new Date())

// YYYY-MM-DD HH:mm:ss 2020-11-11 11:11:11
formatDateTime(new Date())

// 星期日
getWeek()

String

import { toSplash } from 'js-ant'

toSplash([1, 2]) // 1/2
toSplash([1, false]) // 1
toSplash([1, false, 2], '-') // 1-2

Set up

$ git clone --depth=1 https://github.com/xjh22222228/js-ant.git

$ yarn build

$ yarn check

LISTEN

MIT