Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

filepond-plugin-file-validate-duration

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filepond-plugin-file-validate-duration

File Duration Validation Plugin for FilePond

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

FilePond Plugin File Validate Duration

LiveDemo:

Filepond plugin to validate media files duration. Inspired by filepond-plugin-file-validate-size.

Installation:

# NPM
npm i --save filepond-plugin-file-validate-duration

# YARN
yarn add filepond-plugin-file-validate-duration

Available options:

export interface FilePondOptions {
    allowFileDurationValidation?: boolean;
    minFileDuration?: string | null;
    maxFileDuration?: string | null;
    
    fileValidateDurationFilter?: (file: File) => boolean,
    
    /**
     * Callback that is called if error happens
     */
    onFileValidateDurationError?: ({ file: File, code: number }) => void,
    
    labelMinFileDurationExceeded?: string;
    labelMinFileDuration?: string;
    
    labelMaxFileDurationExceeded?: string;
    labelMaxFileDuration?: string;
}

FAQs

Package last updated on 04 Jul 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc