Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whitelynx/header-parse
Parse RFC822-compliant (and similar) headers.
https://github.com/whitelynx/header-parse
Last synced: about 1 month ago
JSON representation
Parse RFC822-compliant (and similar) headers.
- Host: GitHub
- URL: https://github.com/whitelynx/header-parse
- Owner: whitelynx
- Created: 2014-05-30T22:17:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-05-30T22:24:33.000Z (over 10 years ago)
- Last Synced: 2024-11-14T15:51:21.519Z (about 2 months ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
header-parse
============Parse RFC822-compliant (and similar) headers.
This will parse header blocks that conform to [RFC822 section 3][] or [RFC2616 section 4.2][], as well as a few
variations of those standards. One major deviation is that this library _by default_ treats `\r\n` and `\n` as the
same, so headers separated by either will be parsed.This should be useful to parse:
- HTTP headers
- MIME headers (from standard emails, or multipart messages)
- [Maruku-style Markdown document metadata][][RFC822 section 3]: https://tools.ietf.org/html/rfc822#section-3
[RFC2616 section 4.2]: https://tools.ietf.org/html/rfc2616#section-4.2
[Maruku-style Markdown document metadata]: http://maruku.rubyforge.org/maruku.html#meta