diff --git a/README.md b/README.md index a34b191..12edeb2 100644 --- a/README.md +++ b/README.md @@ -4,11 +4,11 @@ ------------------------------------------------ -[![Build Status](https://img.shields.io/circleci/project/FGRibreau/splitBy.svg)](https://circleci.com/gh/FGRibreau/splitBy/) [![Coverage Status](https://img.shields.io/coveralls/FGRibreau/splitBy/master.svg)](https://coveralls.io/github/FGRibreau/splitBy?branch=master) [![Deps]( https://img.shields.io/david/FGRibreau/splitBy.svg)](https://david-dm.org/FGRibreau/splitBy) [![NPM version](https://img.shields.io/npm/v/splitBy.svg)](http://badge.fury.io/js/splitBy) [![Downloads](http://img.shields.io/npm/dm/splitBy.svg)](https://www.npmjs.com/package/splitBy) +[![Build Status](https://img.shields.io/circleci/project/FGRibreau/splitby.svg)](https://circleci.com/gh/FGRibreau/splitby/) [![Coverage Status](https://img.shields.io/coveralls/FGRibreau/splitby/master.svg)](https://coveralls.io/github/FGRibreau/splitby?branch=master) [![Deps]( https://img.shields.io/david/FGRibreau/splitby.svg)](https://david-dm.org/FGRibreau/splitby) [![NPM version](https://img.shields.io/npm/v/splitby.svg)](http://badge.fury.io/js/splitby) [![Downloads](http://img.shields.io/npm/dm/splitby.svg)](https://www.npmjs.com/package/splitby) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/francois-guillaume-ribreau?utm_source=github&utm_medium=button&utm_term=francois-guillaume-ribreau&utm_campaign=github) [![available-for-advisory](https://img.shields.io/badge/available%20for%20consulting%20advisory-yes-ff69b4.svg?)](http://bit.ly/2c7uFJq) ![extra](https://img.shields.io/badge/actively%20maintained-yes-ff69b4.svg) - + ## Usage @@ -21,15 +21,15 @@ Like [String.prototype.split](https://developer.mozilla.org/en-US/docs/Web/JavaS ## Installation -Install with [npm](https://npmjs.org/package/splitBy). +Install with [npm](https://npmjs.org/package/splitby). - npm install --save splitBy + npm install --save splitby ### Example ```javascript -const splitBy = require('splitBy'); +const splitBy = require('splitby'); splitBy([1, 2, 3, "|", 4, 5, 6], val => val === "|"); // [[1, 2, 3], [4, 5, 6]] diff --git a/package.json b/package.json index 00a9bec..7a34ec4 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "splitBy", + "name": "splitby", "description": "This function is like [split](https://lodash.com/docs/4.17.10#split) except that it accepts iteratee which is invoked for each element in array to generate the criterion by which the separation is computed", "version": "1.0.0", "author": {