Package: zumime
Title: Media Type Detection from Bytes and File Names
Version: 0.1.0.9000
Authors@R: c(
person("Pedro", "Baltazar", , "pedrobtz@gmail.com", role = c("aut", "cre", "cph")),
person("Apache Software Foundation", role = "cph",
comment = "copyright holder of the httpd mime.types file the extension table is generated from; see inst/COPYRIGHTS"),
person("Mark", "Adler", role = "cph",
comment = "copyright holder of puff.c, the inflater src/zumime_inflate.c is adapted from; see inst/COPYRIGHTS"),
person("The Go Authors", role = "cph",
comment = "copyright holder of the net/http sniff cases in tests/testthat/helper-go-sniff.R; see tests/testthat/COPYRIGHTS"),
person("Sindre", "Sorhus", role = "cph",
comment = "copyright holder of the file-type answers in tests/testthat/helper-file-type.R; see tests/testthat/COPYRIGHTS")
)
Description: Tells what a file is from its first bytes and from its
name, with no system library. Implements the Web Hypertext
Application Technology Working Group (WHATWG) Multipurpose
Internet Mail Extensions (MIME) Sniffing Standard
over raw vectors and
paths. Reads inside containers to tell 'Office' documents from
plain 'ZIP' archives, audio from video in 'MP4' files, and
'Word' from 'Excel' in legacy 'Office' files, and recognises
the data files 'R' users hold, such as files saved by 'R',
'Parquet', 'SQLite' and 'Stata' files. Every type has a parent
in a hierarchy, and an extension table generated from the
Internet Assigned Numbers Authority (IANA) media types registry
and the 'Apache' 'httpd' type map answers from the name. One
call reports both answers, whether they agree, and whether a
file is compressed, encrypted or truncated.
License: MIT + file LICENSE
URL: https://github.com/pedrobtz/zumime,
https://pedrobtz.github.io/zumime/
BugReports: https://github.com/pedrobtz/zumime/issues
Depends: R (>= 4.1)
Suggests: testthat (>= 3.0.0), withr, zucsv, zujson, zukomp
Config/Needs/website: knitr, rmarkdown
Config/testthat/edition: 3
Config/roxygen2/version: 8.1.1
Encoding: UTF-8
Language: en-GB
Roxygen: list(markdown = TRUE)
Repository: https://pedrobtz.r-universe.dev
Date/Publication: 2026-11-15 06:29:11 UTC
RemoteUrl: https://github.com/pedrobtz/zumime
RemoteRef: HEAD
RemoteSha: fae69af034ad2ef7d632ee0aae31a4ddd91d1a2d
NeedsCompilation: yes
Packaged: 2026-11-15 07:09:26 UTC; root
Author: Pedro Baltazar [aut, cre, cph],
Apache Software Foundation [cph] (copyright holder of the httpd
mime.types file the extension table is generated from; see
inst/COPYRIGHTS),
Mark Adler [cph] (copyright holder of puff.c, the inflater
src/zumime_inflate.c is adapted from; see inst/COPYRIGHTS),
The Go Authors [cph] (copyright holder of the net/http sniff cases in
tests/testthat/helper-go-sniff.R; see tests/testthat/COPYRIGHTS),
Sindre Sorhus [cph] (copyright holder of the file-type answers in
tests/testthat/helper-file-type.R; see tests/testthat/COPYRIGHTS)
Maintainer: Pedro Baltazar