This package has been deprecated

Author message:

deprecated

irela-utils

1.0.8 • Public • Published

Utils cho javascript

  • Sử dụng
  • const utils = require('@hoaphatnp/utils');
  • const slug = utils.slug;
  • ...
  1. array -> Xử lý mảng
  2. currency -> Xử lý số, tiền tệ
  3. number -> Thao tác số
  4. datetime -> Xử lý DateTime
  5. slug -> "Máy lạnh Panasonic 123/4" -> "may-lanh-panasonic-1234"
  6. truncate -> Bớt chuỗi
  7. image -> Resize image
  8. otp -> Generate and validate OTP
  9. noTryCatch => Không cần try/catch khi sử dụng async/await
  • middlewares -> chứa các middleware tái sử dụng
  1. middlewares.uploadAndResizeImage -> middleware upload and resize hình ảnh

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i irela-utils

    Weekly Downloads

    3

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    20.6 kB

    Total Files

    14

    Last publish

    Collaborators

    • npm