JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q44001F
  • License Apache

A library for creating special hooks

Package Exports

  • special-hooks
  • special-hooks/dist/index.es.js
  • special-hooks/dist/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 (special-hooks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Special Hooks

This project was made to provide some easy and special hooks for hassle-free development.

Available Hooks

useCardType - This hook is used to get the card type of a card.

const [cardType, errors] = useCardType(cardNumber);

useValidateEmail - This hook is used to get the card type of a card.

const isValid = useValidateEmail(email);

useRandomEmails - This hook generates random emails.

const emails = useRandomEmails(count);

useRandomColors - This hook is made to generate random colors.

const colors = useRandomColors(count);

useCounter - This provides a counter object to be used in a component.

const {count, increment, decrement} = useCount(initialCount);

useDateTime - It provides current date and time in a array.

const [date, time] = useDateTime();

Contribution Guide

Feel free to contribute to the codebase.