Skip to content

Commit ebd1de2

Browse files
authored
docs(readme): update README.md
1 parent 0a147dc commit ebd1de2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# GitHub Languages Client
22

33
[![Build Status](https://travis-ci.org/jaebradley/github-languages-client.svg?branch=master)](https://travis-ci.org/jaebradley/github-languages-client)
4+
[![Codecov](https://img.shields.io/codecov/c/github/jaebradley/github-languages-client.svg)](https://codecov.io/gh/jaebradley/github-languages-client)
45
[![npm](https://img.shields.io/npm/dt/github-languages-client.svg)](github-https://www.npmjs.com/package/github-languages-client-client)
56
[![npm](https://img.shields.io/npm/v/github-languages-client.svg)](https://www.npmjs.com/package/github-languages-client)
67

@@ -56,7 +57,9 @@ This `class` method returns fuzzy-search text matching on the language's name, a
5657
```javascript
5758
import GitHubLanguagesClient from 'github-languages-client';
5859

59-
const matchingLanguages = GitHubLanguagesClient.get('JavaScript');
60+
const client = new GitHubLanguagesClient();
61+
62+
const matchingLanguages = client.search('JavaScript');
6063

6164
// {
6265
// type: 'programming',
@@ -110,6 +113,6 @@ const matchingLanguages = GitHubLanguagesClient.get('JavaScript');
110113

111114
<ul>
112115
<li>
113-
<a name='languages-job-footnote'><sup>1</sup>I have [a Travis CI job](https://github.com/jaebradley/github-languages-watcher) that runs daily and opens PRs against this repository if it detects changes in the `languages.yml` file.</a>
116+
<a name='languages-job-footnote'><sup>1</sup> I have <a href="https://github.com/jaebradley/github-languages-watcher">a Travis CI job</a> that runs daily and opens PRs against this repository if it detects changes in the `languages.yml` file.</a>
114117
</li>
115118
</ul>

0 commit comments

Comments
 (0)