Skip to content

Commit 396ba12

Browse files
Update readme
1 parent 207f39b commit 396ba12

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# ES6 `String.prototype.codePointAt` polyfill [![Build status](https://travis-ci.org/mathiasbynens/String.prototype.codePointAt.svg?branch=master)](https://travis-ci.org/mathiasbynens/String.prototype.codePointAt)
22

3-
A robust & optimized ES3-compatible polyfill for [the `String.prototype.codePointAt` method in ECMAScript 6](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.codepointat).
3+
A robust & optimized polyfill for [the `String.prototype.codePointAt` method in ECMAScript 6](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.codepointat).
4+
5+
This package implements the [es-shim API](https://github.com/es-shims/api) interface. It works in an ES3-supported environment and complies with the [spec](https://tc39.es/ecma262/#sec-string.prototype.codepointat).
46

57
Other polyfills for `String.prototype.codePointAt` are available:
68

@@ -10,12 +12,6 @@ Other polyfills for `String.prototype.codePointAt` are available:
1012

1113
## Installation
1214

13-
In a browser:
14-
15-
```html
16-
<script src="codepointat.js"></script>
17-
```
18-
1915
Via [npm](http://npmjs.org/):
2016

2117
```bash
@@ -32,6 +28,16 @@ require('string.prototype.codepointat');
3228
require('String.prototype.codePointAt');
3329
```
3430

31+
In a browser:
32+
33+
```html
34+
<script src="https://bundle.run/string.prototype.codepointat"></script>
35+
```
36+
37+
> **NOTE**: It's recommended that you install this module using a package manager
38+
> such as `npm`, because loading multiple polyfills from a CDN (such as `bundle.run`)
39+
> will lead to duplicated code.
40+
3541
## Notes
3642

3743
[A polyfill + test suite for `String.fromCodePoint`](https://mths.be/fromcodepoint) is available, too.

0 commit comments

Comments
 (0)