Skip to content
This repository was archived by the owner on Aug 24, 2021. It is now read-only.

Commit b404f00

Browse files
authored
Merge pull request #15 from multiformats/feature/standardize-readme
Standardized Readme
2 parents f7324ba + 82399c6 commit b404f00

File tree

2 files changed

+63
-4
lines changed

2 files changed

+63
-4
lines changed

Diff for: LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Protocol Labs Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

Diff for: README.md

+42-4
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,42 @@ js-multihash
22
============
33

44
[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io)
5+
[![](https://img.shields.io/badge/project-multiformats-blue.svg?style=flat-square)](http://github.com/multiformats/multiformats)
56
[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs)
67
[![Coverage Status](https://coveralls.io/repos/github/multiformats/js-multihash/badge.svg?branch=master)](https://coveralls.io/github/multiformats/js-multihash?branch=master)
78
[![Travis CI](https://travis-ci.org/multiformats/js-multihash.svg?branch=master)](https://travis-ci.org/multiformats/js-multihash)
89
[![Circle CI](https://circleci.com/gh/multiformats/js-multihash.svg?style=svg)](https://circleci.com/gh/multiformats/js-multihash)
910
[![Dependency Status](https://david-dm.org/multiformats/js-multihash.svg?style=flat-square)](https://david-dm.org/multiformats/js-multihash)
1011
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard)
1112

12-
> [multihash](//github.com/multiformats/multihash) implementation.
13-
14-
## Installation
13+
> multihash implementation in node.js
14+
15+
This is the [multihash](//github.com/multiformats/multihash) implementation in Node.
16+
17+
## Table of Contents
18+
19+
- [Install](#install)
20+
- [In Node.js through npm](#in-nodejs-through-npm)
21+
- [Browser: Browserify, Webpack, other bundlers](#browser-browserify-webpack-other-bundlers)
22+
- [In the Browser through `<script>` tag](#in-the-browser-through-script-tag)
23+
- [Gotchas](#gotchas)
24+
- [Usage](#usage)
25+
- [API](#api)
26+
- [`decode(buf)`](#decodebuf)
27+
- [`encode(digest, hashfn[, length])`](#encodedigest-hashfn-length)
28+
- [`toHexString(multihash)`](#tohexstringmultihash)
29+
- [`fromHexString(string)`](#fromhexstringstring)
30+
- [`toB58String(multihash)`](#tob58stringmultihash)
31+
- [`fromB58String(string)`](#fromb58stringstring)
32+
- [`coerceCode(name)`](#coercecodename)
33+
- [`isAppCode(code)`](#isappcodecode)
34+
- [`isValidCode(code)`](#isvalidcodecode)
35+
- [`validate(multihash)`](#validatemultihash)
36+
- [Maintainers](#maintainers)
37+
- [Contribute](#contribute)
38+
- [License](#license)
39+
40+
## Install
1541

1642
### In Node.js through npm
1743

@@ -152,6 +178,18 @@ Returns a boolean.
152178

153179
Check if the given buffer is a valid multihash. Throws an error if it is not valid.
154180

181+
## Maintainers
182+
183+
Captain: [@diasdavid](https://github.com/diasdavid).
184+
185+
## Contribute
186+
187+
Contributions welcome. Please check out [the issues](https://github.com/multiformats/js-multihash/issues).
188+
189+
Check out our [contributing document](https://github.com/multiformats/multiformats/blob/master/contributing.md) for more information on how we work, and about contributing in general. Please be aware that all interactions related to multiformats are subject to the IPFS [Code of Conduct](https://github.com/ipfs/community/blob/master/code-of-conduct.md).
190+
191+
Small note: If editing the Readme, please conform to the [standard-readme](https://github.com/RichardLitt/standard-readme) specification.
192+
155193
## License
156194

157-
MIT
195+
[MIT] © Protocol Labs Inc.

0 commit comments

Comments
 (0)