From 59b89039b677fca7ffbc823efb95b120aee33735 Mon Sep 17 00:00:00 2001 From: David Dias Date: Thu, 3 Mar 2016 17:31:33 +0000 Subject: [PATCH] came to fix a square bracket, ended up touch a bunch of other things :) --- README.md | 28 +- dist/peer-id.js | 24225 ---------------------------------- dist/peer-id.min.js | 11 - karma.conf.js | 14 +- package.json | 4 +- src/index.js | 66 +- {pb => src/pb}/crypto.proto | 0 tests/test.js | 24 +- 8 files changed, 70 insertions(+), 24302 deletions(-) delete mode 100644 dist/peer-id.js delete mode 100644 dist/peer-id.min.js rename {pb => src/pb}/crypto.proto (100%) diff --git a/README.md b/README.md index a7e4131..a36e391 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,11 @@ peer-id JavaScript implementation -============================== +================================= -[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) ![Build Status](https://travis-ci.org/diasdavid/js-peer-id.svg?style=flat-square)](https://travis-ci.org/diasdavid/js-peer-id) ![](https://img.shields.io/badge/coverage-95%25-yellow.svg?style=flat-square) [![Dependency Status](https://david-dm.org/diasdavid/js-peer-id.svg?style=flat-square)](https://david-dm.org/diasdavid/js-peer-id) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) +[![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [[![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) +[![Build Status](https://travis-ci.org/diasdavid/js-peer-id.svg?style=flat-square)](https://travis-ci.org/diasdavid/js-peer-id) +![](https://img.shields.io/badge/coverage-95%25-yellow.svg?style=flat-square) +[![Dependency Status](https://david-dm.org/diasdavid/js-peer-id.svg?style=flat-square)](https://david-dm.org/diasdavid/js-peer-id) +[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/feross/standard) > IPFS Peer Id implementation in JavaScript # Description @@ -16,11 +20,11 @@ The public key is a base64 encoded string of a protobuf containing an RSA DER bu ### In Node.js through npm ```bash -$ npm install --save peer-id +> npm install --save peer-id ``` ```javascript -var PeerId = require('peer-id') +const PeerId = require('peer-id') ``` ### In the Browser through browserify @@ -32,7 +36,7 @@ Same as in Node.js, you just have to [browserify](https://github.com/substack/no Make the [peer-id.min.js](/dist/peer-id.min.js) available through your server and load it using a normal `