Skip to content
Myr

Add badges for npm and gzip size

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Everyone likes badges so I added some more. These are kept in sync with npm. Also I added a link to the JSDelivr CDN which includes some stats on usage. See https://cdn.jsdelivr.net/npm/immer/

authored by Steven · committed by GitHub · parent 77c17f7 · Browse files · 1 file+8 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+8 added−3 removed

  • other:+8 added−3 removed

1 file+8 added−3 removed

modified:readme.md+8 added-3 removed
1# Immer23[![npm](https://img.shields.io/npm/v/copee.svg)](https://www.npmjs.com/package/immer)4[![size](http://img.badgesize.io/https://cdn.jsdelivr.net/npm/immer/dist/immer.umd.js?compression=gzip)](http://img.badgesize.io/https://cdn.jsdelivr.net/npm/immer/dist/immer.umd.js)5[![Build Status](https://travis-ci.org/mweststrate/immer.svg?branch=master)](https://travis-ci.org/mweststrate/immer)6[![Coverage Status](https://coveralls.io/repos/github/mweststrate/immer/badge.svg?branch=master)](https://coveralls.io/github/mweststrate/immer?branch=master)7[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)8[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/michelweststrate)
1 unmodified line
10_Create the next immutable state tree by simply modifying the current tree_1112---1312* NPM / Yarn: `npm install immer`13* CDN: https://unpkg.com/immer/dist/immer.umd.js. Exposed global is `immer`.1414* NPM: `npm install immer`15* Yarn: `yarn add immer`16* CDN: Exposed global is `immer`17 * Unpkg: `<script src="https://unpkg.com/immer/dist/immer.umd.js"></script>`18 * JSDelivr: `<script src="https://cdn.jsdelivr.net/npm/immer/dist/immer.umd.js"></script>`19 20---2122* Egghead lesson covering all of immer (7m): [Simplify creating immutable data trees with Immer](https://egghead.io/lessons/redux-simplify-creating-immutable-data-trees-with-immer)23* Introduction blogpost: [Immer: Immutability the easy way](https://medium.com/@mweststrate/introducing-immer-immutability-the-easy-way-9d73d8f71cb3)
401 unmodified lines