From 936dfc8ef4f95355a68a143a20b9199c8a6a7b89 Mon Sep 17 00:00:00 2001 From: Friedel Ziegelmayer Date: Sun, 11 Dec 2016 11:55:48 +0100 Subject: [PATCH] feat: rename to borc --- README.md | 12 ++++++------ benchmarks/index.js | 6 +++--- package.json | 6 +++--- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 81d58f04..8c63735c 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ -# fast-cbor +# borc [![](https://img.shields.io/badge/made%20by-Protocol%20Labs-blue.svg?style=flat-square)](http://ipn.io) [![](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](http://ipfs.io/) [![](https://img.shields.io/badge/freenode-%23ipfs-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23ipfs) -[![Coverage Status](https://coveralls.io/repos/github/dignifiedquire/fast-cbor/badge.svg?branch=master)](https://coveralls.io/github/dignifiedquire/fast-cbor?branch=master) -[![Dependency Status](https://david-dm.org/dignifiedquire/fast-cbor.svg?style=flat-square)](https://david-dm.org/dignifiedquire/fast-cbor) -[![Travis CI](https://travis-ci.org/dignifiedquire/fast-cbor.svg?branch=master)](https://travis-ci.org/dignifiedquire/fast-cbor) -[![Circle CI](https://circleci.com/gh/dignifiedquire/fast-cbor.svg?style=svg)](https://circleci.com/gh/dignifiedquire/fast-cbor) +[![Coverage Status](https://coveralls.io/repos/github/dignifiedquire/borc/badge.svg?branch=master)](https://coveralls.io/github/dignifiedquire/fast-cbor?branch=master) +[![Dependency Status](https://david-dm.org/dignifiedquire/borc.svg?style=flat-square)](https://david-dm.org/dignifiedquire/fast-cbor) +[![Travis CI](https://travis-ci.org/dignifiedquire/borc.svg?branch=master)](https://travis-ci.org/dignifiedquire/fast-cbor) +[![Circle CI](https://circleci.com/gh/dignifiedquire/borc.svg?style=svg)](https://circleci.com/gh/dignifiedquire/fast-cbor) > Encode and parse data in the Concise Binary Object Representation (CBOR) data format ([RFC7049](http://tools.ietf.org/html/rfc7049)) **as fast as possible**. @@ -21,7 +21,7 @@ This library is a fork of the awesome [node-cbor]([![standard-readme compliant]( ## Installation ```bash -$ npm install --save fast-cbor +$ npm install --save borc ``` ## Benchmarks diff --git a/benchmarks/index.js b/benchmarks/index.js index d34e2e08..d3b73b01 100644 --- a/benchmarks/index.js +++ b/benchmarks/index.js @@ -33,13 +33,13 @@ suite.add(`encode - node-cbor - ${vecLength}`, () => { } }) -suite.add(`encode - fast-cbor - ${vecLength}`, () => { +suite.add(`encode - borc - ${vecLength}`, () => { for (let i = 0; i < vecLength; i++) { res.push(fastCbor.encode(vectors[i].decoded)[0]) } }) -suite.add(`encode - stream - fast-cbor - ${vecLength}`, () => { +suite.add(`encode - stream - borc - ${vecLength}`, () => { const enc = new fastCbor.Encoder({stream (chunk) { res.push(chunk) }}) @@ -62,7 +62,7 @@ suite.add(`decode - node-cbor - ${buffers.length}`, () => { } }) -suite.add(`decode - fast-cbor - ${buffers.length}`, () => { +suite.add(`decode - borc - ${buffers.length}`, () => { for (let i = 0; i < buffers.length; i++) { res.push(fastDecoder.decodeFirst(buffers[i])) } diff --git a/package.json b/package.json index c72a6671..cc1fc704 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "fast-cbor", + "name": "borc", "version": "1.0.0", "description": "Encode and parse data in the Concise Binary Object Representation (CBOR) data format (RFC7049).", "main": "./src/index.js", "repository": { "type": "git", - "url": "https://github.com/dignifiedquire/fast-cbor.git" + "url": "https://github.com/dignifiedquire/borc.git" }, - "homepage": "https://github.com/dignifiedquire/fast-cbor.git", + "homepage": "https://github.com/dignifiedquire/borc.git", "browser": { "fs": false },