From 581428a3bac2ea90ac29d93a78e2f100e3597d0c Mon Sep 17 00:00:00 2001 From: achingbrain Date: Fri, 8 Jun 2018 14:47:55 +0100 Subject: [PATCH] chore: update data structure --- README.md | 39 +++++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 24cf8f60..a1f08e9b 100644 --- a/README.md +++ b/README.md @@ -21,23 +21,26 @@ ## Table of Contents -- [Install](#install) - - [npm](#npm) - - [Use in Node.js](#use-in-nodejs) - - [Use in a browser with browserify, webpack or any other bundler](#use-in-a-browser-with-browserify-webpack-or-any-other-bundler) - - [Use in a browser Using a script tag](#use-in-a-browser-using-a-script-tag) -- [Usage](#usage) - - [Examples](#examples) - - [Create a file composed by several blocks](#create-a-file-composed-by-several-blocks) - - [Create a directory that contains several files](#create-a-directory-that-contains-several-files) -- [API](#api) - - [unixfs Data Structure](#unixfs-data-structure) - - [create an unixfs Data element](#create-an-unixfs-data-element) - - [add and remove a block size to the block size list](#add-and-remove-a-block-size-to-the-block-size-list) - - [get total fileSize](#get-total-filesize) - - [marshal and unmarshal](#marshal-and-unmarshal) -- [Contribute](#contribute) -- [License](#license) +- [ipfs-unixfs JavaScript Implementation](#ipfs-unixfs-javascript-implementation) + - [Lead Maintainer](#lead-maintainer) + - [Table of Contents](#table-of-contents) + - [Install](#install) + - [npm](#npm) + - [Use in Node.js](#use-in-nodejs) + - [Use in a browser with browserify, webpack or any other bundler](#use-in-a-browser-with-browserify--webpack-or-any-other-bundler) + - [Use in a browser Using a script tag](#use-in-a-browser-using-a-script-tag) + - [Usage](#usage) + - [Examples](#examples) + - [Create a file composed by several blocks](#create-a-file-composed-by-several-blocks) + - [Create a directory that contains several files](#create-a-directory-that-contains-several-files) + - [API](#api) + - [unixfs Data Structure](#unixfs-data-structure) + - [create an unixfs Data element](#create-an-unixfs-data-element) + - [add and remove a block size to the block size list](#add-and-remove-a-block-size-to-the-block-size-list) + - [get total fileSize](#get-total-filesize) + - [marshal and unmarshal](#marshal-and-unmarshal) + - [Contribute](#contribute) + - [License](#license) ## Install @@ -113,7 +116,7 @@ message Data { } message Metadata { - required string MimeType = 1; + optional string MimeType = 1; } ```