Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

file-formats

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-formats

Library of file formats. Get a list of file formats by type

latest
Source
npmnpm
Version
0.0.12
Version published
Maintainers
1
Created
Source

file-formats

Library of file formats and extensions. Able to search by category.

npm install --save file-formats

interface

______________________________________________________
fileFormats.list(category)

PARAMS:
category (String): Category or type to search by
                   Possible values: video | image | audio |  ....
RETURNS
list (Array): List of extensions or values searched for
______________________________________________________

fileFormats.categories()

PARAMS:
none

RETURNS
categories (Array): List of categories available
______________________________________________________

//EXAMPLE
var fileFormats = require('file-formats');

//eg. Get a list of all extensions available
console.log(fileFormats.list())

//eg. Get a list of video file extensions available
console.log(fileFormats.list('video'))

Contribute

  • Feel free to submit PRs with additional formats or updated information
  • Please see definitions for examples of how to add extension definitions

Notes

  • Formats still being filled out (an ongoing process)
  • If something is not there that you know of, submit a PR
  • This library can expand beyond the basic categories of audio, video, and image
  • The aim is to have an extensive list of formats and whatever categories they fall in

Keywords

file

FAQs

Package last updated on 20 Jul 2016

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