Skip to content

Raycast Extension to Search, copy, and preview functions directly from the official validator.js repository.

Notifications You must be signed in to change notification settings

djankies/validator-functions

Repository files navigation

Validator Functions

Search, copy, and preview validator functions directly from the official validator.js repository.

Features

  • Search through validator.js functions
  • Copy function code directly to your clipboard
  • Preview function implementation and tests
  • Quick access to documentation

Prerequisites

Before using this extension, you'll need to set up a GitHub Personal Access Token with repository read permissions.

Setting up GitHub Access Token

  1. Go to GitHub Settings > Developer Settings > Personal Access Tokens > Tokens (classic)
  2. Click 'Generate new token (classic)'
  3. Give your token a descriptive name (e.g., 'Raycast Validator Functions')
  4. Select the following permissions:
    • repo:status
    • public_repo
  5. Click 'Generate token'
  6. Copy your token immediately (you won't be able to see it again!)
  7. In Raycast, paste the token in the 'GitHub Access Token' field on the welcome screen. If you don't see the welcome screen, open the extension settings:
    • Press ⌘ + ,
    • Search for 'Validator Functions'
    • Paste your GitHub token in the 'GitHub Access Token' field

Usage

  1. Open Raycast
  2. Search for 'Validator Function Search'
  3. Type the name of the validator function you're looking for
  4. Press Enter to view details and copy the function

Support

If you encounter any issues or have questions, please create an issue.

About

Raycast Extension to Search, copy, and preview functions directly from the official validator.js repository.

Topics

Resources

Stars

Watchers

Forks