@ephemeras/shared

v0.0.1

Published

Shared utils for commonly used

Downloads

61

Readme

@ephemeras/shared

Shared features for ephemeras.

Documentation

Please refer to the documentation.

License

MIT License © 2023-PRESENT Kythuen

  • /^[A-Z][a-z0-9]+(?:[A-Z][a-z0-9])$/ pascal-case 检测
  • pascalTosnake(xxx) => radash: snake(title(xxx))
  • resolve(fileURLToPath(import.meta.url), '../../..') => constant
  • qs, getUrlParam
  • white-block: toOptions(originData: Record<string, any>[], labelProp: string, valueProp: string) => { label: string, value: any }[]
  • mapToList, groupListBySize, getIntersection, getUnion, getDifference
  • listToTree, treeToList
  • getDateFromTimeStamp