2.2.2 • Published 4 months ago

antd-custom-utils v2.2.2

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

Package ini menyediakan komponen-komponen custom dari Ant Design dan juga generalisasi response API, yang dirancang untuk mempercepat dan mempermudah proses pengembangan aplikasi web Anda.

⚙️ Install

Install secara lokal di folder proyek Anda:

npm i antd-custom-utils
# Atau Yarn
yarn add antd-custom-utils
# Atau pnpm
pnpm add antd-custom-utils

You can also install it globally but it's not recommended.

📖 Usage

Bundle files

import { bundle } from 'antd-custom-utils'

📚 List Packages

utils

  • cookies - getCookies, setCookies, removeCookies
  • formatDate - (dayjs) Converts a timestamp to a human-readable relative time.
  • find - Finds the first element in the array that satisfies the provided testing function.
  • generate-acronym - Generate acronym from string
  • generate key - Generate key for encryption
  • get - Retrieves a value from an object using the specified path.
  • includes - Checks if a value is present in an array.
  • isAlpha - Checks if the given string consists of only alphabets.
  • isEmpty - Checks if the given value is empty.
  • isNull - Checks if a value is null.
  • localstorage - getLs, setLs, removeLs enryption with secrety key
  • notification - notification with antd
  • omit - Creates a new object by omitting specified keys from the source object.
  • request - Makes a GET and POST request to the general response json.
  • secure - encryption vernam cipher with generate key
  • xor string - encryption xor string with generate key

storage

  • cookies - getCookies, setCookies, removeCooies yang sudah di modifikasi dengan enkripsi
  • localstorage - getLs, setLs, removeLs yang sudah di modifikasi dengan enkripsi

headers

  • postRequest - Makes a POST request to the specified URL with the provided request body and returns the response data.
  • listRequest - Makes a GET request to the specified URL and returns the response data array.
  • singleRequest - Makes a GET request to the specified URL and returns the response data object.

🤝 Berkolaborasi

Jika Anda memiliki permintaan fitur, pertanyaan, atau menemukan bug, jangan ragu untuk membuat sebuah issue. Kami sangat menghargai kontribusi dan kolaborasi dari komunitas. Mari kita kembangkan package ini bersama!

2.2.2

4 months ago

2.2.1

4 months ago

2.2.0

4 months ago