async-neocities
Version:
A library and bin to deploy to neocities
74 lines (73 loc) • 971 B
JavaScript
/**
* The set of supported file extensions on neocities. Supporters can upload files outside the set.
* @type {Set<string>}
* @see {@link https://neocities.org/site_files/allowed_types|Allowed File Types}
*/
export const supportedFiletypes = new Set([
'.apng',
'.asc',
'.atom',
'.avif',
'.bin',
'.cjs',
'.css',
'.csv',
'.dae',
'.eot',
'.epub',
'.geojson',
'.gif',
'.glb',
'.gltf',
'.gpg',
'.htm',
'.html',
'.ico',
'.jpeg',
'.jpg',
'.js',
'.json',
'.key',
'.kml',
'.knowl',
'.less',
'.manifest',
'.map',
'.markdown',
'.md',
'.mf',
'.mid',
'.midi',
'.mjs',
'.mtl',
'.obj',
'.opml',
'.osdx',
'.otf',
'.pdf',
'.pgp',
'.pls',
'.png',
'.py',
'.rdf',
'.resolveHandle',
'.rss',
'.sass',
'.scss',
'.svg',
'.text',
'.toml',
'.ts',
'.tsv',
'.ttf',
'.txt',
'.webapp',
'.webmanifest',
'.webp',
'.woff',
'.woff2',
'.xcf',
'.xml',
'.yaml',
'.yml'
])