Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xuchunyang/file-mime-type.el
Get file's mime type via file(1)
https://github.com/xuchunyang/file-mime-type.el
Last synced: about 1 month ago
JSON representation
Get file's mime type via file(1)
- Host: GitHub
- URL: https://github.com/xuchunyang/file-mime-type.el
- Owner: xuchunyang
- Created: 2018-11-12T11:47:14.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-13T23:41:24.000Z (about 6 years ago)
- Last Synced: 2024-10-16T01:45:55.348Z (3 months ago)
- Language: Emacs Lisp
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# `file-mime-type.el`
[![Build Status](https://travis-ci.org/xuchunyang/file-mime-type.el.svg?branch=master)](https://travis-ci.org/xuchunyang/file-mime-type.el);; Get file's mime type via file(1):
;;
;; (file-mime-type user-init-file)
;; ;; => "text/x-lisp"
;;
;; (file-mime-type (expand-file-name "~/Pictures/org-mode-unicorn.svg"))
;; ;; => "image/svg+xml"
;;
;; (file-mime-type-batch '("README.md" "Makefile"))
;; ;; => ("text/plain" "text/x-makefile")