JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5
  • Score
    100M100P100Q43193F
  • License MIT

Package Exports

  • cmfcucai
  • cmfcucai/lib/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cmfcucai) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Giới Thiệu

Tổng hợp từ những hàm củ cải của anh em

Cài đặt

$ npm install cmfcucai@latest

Import vào sử dụng

Sau khi cài đặt thì import vào như phía dưới

import { 
    CommonFunc,
    CommonDate,
    CommonFile 
    } from 'cmfcucai';

Gồm có 3 module chính.

CommonFunc

Module những hàm hay dùng.

setSelectionRange,
checkDouble,
formatDecimal,
compare2Object,
getByteLength,
UUIDV4,
smallUUID,
emailValidate,
createUrlQuery,
replaceAll

CommonDate

Module những hàm hay dùng cho Date.

getDateString,
isLeapYear,
getDaysInMonth,
countDayNotSunday,
addMonths,
formatValueChange,
roundDate,
getDayBetween2Date,
isDateWithFormat

CommonCookie

Module những hàm hay dùng cho Cookie.

deleteCookie,
delAllCookie,
getcookie,
setCookie

CommonFile

Module những hàm hay dùng cho File.

arrayDataToTxt, -> xuất file text
base64ToBlob,
dataToCSV -> xuất file CSV
arrayDataToTxt => export array data to file txt
        parameter : (_arrayData, fileName = "text.txt") 
        _arrayData exp : ["row1","row2",...]
        fileName default is "text.txt"

base64ToBlob => convert base64 string to blob

dataToCSV => export object data to file csv
        parameter : (dataListObj,options,fileName = 'myCSV.csv') 
        options exp : [{headerName : '' , columnName : ''}]
        fileName default is "myCSV.csv"

update late

Sometime can help you, maybe