|
21 | 21 |
|
22 | 22 | ## Table of Contents
|
23 | 23 |
|
24 |
| -- [Install](#install) |
25 |
| - - [npm](#npm) |
26 |
| - - [Use in Node.js](#use-in-nodejs) |
27 |
| - - [Use in a browser with browserify, webpack or any other bundler](#use-in-a-browser-with-browserify-webpack-or-any-other-bundler) |
28 |
| - - [Use in a browser Using a script tag](#use-in-a-browser-using-a-script-tag) |
29 |
| -- [Usage](#usage) |
30 |
| - - [Examples](#examples) |
31 |
| - - [Create a file composed by several blocks](#create-a-file-composed-by-several-blocks) |
32 |
| - - [Create a directory that contains several files](#create-a-directory-that-contains-several-files) |
33 |
| -- [API](#api) |
34 |
| - - [unixfs Data Structure](#unixfs-data-structure) |
35 |
| - - [create an unixfs Data element](#create-an-unixfs-data-element) |
36 |
| - - [add and remove a block size to the block size list](#add-and-remove-a-block-size-to-the-block-size-list) |
37 |
| - - [get total fileSize](#get-total-filesize) |
38 |
| - - [marshal and unmarshal](#marshal-and-unmarshal) |
39 |
| -- [Contribute](#contribute) |
40 |
| -- [License](#license) |
| 24 | +- [ipfs-unixfs JavaScript Implementation](#ipfs-unixfs-javascript-implementation) |
| 25 | + - [Lead Maintainer](#lead-maintainer) |
| 26 | + - [Table of Contents](#table-of-contents) |
| 27 | + - [Install](#install) |
| 28 | + - [npm](#npm) |
| 29 | + - [Use in Node.js](#use-in-nodejs) |
| 30 | + - [Use in a browser with browserify, webpack or any other bundler](#use-in-a-browser-with-browserify--webpack-or-any-other-bundler) |
| 31 | + - [Use in a browser Using a script tag](#use-in-a-browser-using-a-script-tag) |
| 32 | + - [Usage](#usage) |
| 33 | + - [Examples](#examples) |
| 34 | + - [Create a file composed by several blocks](#create-a-file-composed-by-several-blocks) |
| 35 | + - [Create a directory that contains several files](#create-a-directory-that-contains-several-files) |
| 36 | + - [API](#api) |
| 37 | + - [unixfs Data Structure](#unixfs-data-structure) |
| 38 | + - [create an unixfs Data element](#create-an-unixfs-data-element) |
| 39 | + - [add and remove a block size to the block size list](#add-and-remove-a-block-size-to-the-block-size-list) |
| 40 | + - [get total fileSize](#get-total-filesize) |
| 41 | + - [marshal and unmarshal](#marshal-and-unmarshal) |
| 42 | + - [Contribute](#contribute) |
| 43 | + - [License](#license) |
41 | 44 |
|
42 | 45 | ## Install
|
43 | 46 |
|
@@ -113,7 +116,7 @@ message Data {
|
113 | 116 | }
|
114 | 117 |
|
115 | 118 | message Metadata {
|
116 |
| - required string MimeType = 1; |
| 119 | + optional string MimeType = 1; |
117 | 120 | }
|
118 | 121 | ```
|
119 | 122 |
|
|
0 commit comments