File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 8
8
9
9
Simple RFC 6838 media type parser.
10
10
11
- This module will parse a given media type into it's component parts, like type,
11
+ This module will parse a given media type into its component parts, like type,
12
12
subtype, and suffix. A formatter is also provided to put them back together and
13
13
the two can be combined to normalize media types into a canonical form.
14
14
15
- If you are looking to parse the string that represents a media type and it's
15
+ If you are looking to parse the string that represents a media type and its
16
16
parameters in HTTP (for example, the ` Content-Type ` header), use the
17
17
[ content-type module] ( https://www.npmjs.com/package/content-type ) .
18
18
@@ -75,7 +75,7 @@ If any of the given object values are invalid, then a `TypeError` is thrown.
75
75
var valid = typer .test (' image/svg+xml' )
76
76
```
77
77
78
- Validate a media type string. This will return ` true ` is the string is a well-
78
+ Validate a media type string. This will return ` true ` if the string is a well-
79
79
formatted media type, or ` false ` otherwise.
80
80
81
81
## License
You can’t perform that action at this time.
0 commit comments