You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
2
2
3
3
[](https://npmjs.org/package/fastestsmallesttextencoderdecoder"View this project on npm")
4
-
[](https://github.com/anonyco/FastSmallTextEncoderDecoder/stargazers"View others who have stared this repository")
5
-
[](https://github.com/anonyco/FastSmallTextEncoderDecoder/blob/master/EncoderDecoderTogether.min.js"File without gzip")
6
-
[](https://github.com/anonyco/FastSmallTextEncoderDecoder/blob/master/test/EncoderDecoderTogether.min.js.gz"Gzipped file")
7
-
[](https://npmjs.org/package/fastestsmallesttextencoderdecoder"View this project on npm")<!--[]( https://github.com/anonyco/FastSmallTextEncoderDecoder/issues )-->
4
+
[](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/stargazers"View others who have stared this repository")
5
+
[](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/blob/master/EncoderDecoderTogether.min.js"File without gzip")
6
+
[](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/blob/master/test/EncoderDecoderTogether.min.js.gz"Gzipped file")
7
+
[](https://npmjs.org/package/fastestsmallesttextencoderdecoder"View this project on npm")<!--[]( https://github.com/anonyco/FastestSmallestTextEncoderDecoder/issues )-->
[](https://npmjs.org/package/fastestsmallesttextencoderdecoder"View this project on npm")
10
10
@@ -30,11 +30,11 @@ The `nomodule` attribute prevents the script from being needlessly downloaded an
30
30
31
31
## EncodeInto
32
32
33
-
See MDN here for documentation. For the TextEncoder.prototype.encodeInto polyfill, please use `https://dl.dropboxusercontent.com/s/i2e2rho1ohtbhfg/EncoderDecoderTogether.min.js?dl=0` for the full package, `https://dl.dropboxusercontent.com/s/nlcgzbr0ayd5pjs/FastestTextEncoderPolyfill.min.js?dl=0` for only TextEncoder and TextEncoder.prototype.encodeInto, and `npm i fastestsmallesttextencoderdecoder-encodeinto` for NodeJS, es6 modules, RequireJS, AngularJS, or whatever it is that floats your boat.
33
+
See the [MDN here](https://developer.mozilla.org/en-US/docs/Web/API/TextEncoder/encodeInto) for documentation. For the TextEncoder.prototype.encodeInto polyfill, please use `https://dl.dropboxusercontent.com/s/i2e2rho1ohtbhfg/EncoderDecoderTogether.min.js?dl=0` for the full package, `https://dl.dropboxusercontent.com/s/nlcgzbr0ayd5pjs/FastestTextEncoderPolyfill.min.js?dl=0` for only TextEncoder and TextEncoder.prototype.encodeInto, and `npm i fastestsmallesttextencoderdecoder-encodeinto` for NodeJS, es6 modules, RequireJS, AngularJS, or whatever it is that floats your boat.
34
34
35
35
## RequireJS and NodeJS
36
36
37
-
For dropping into either RequireJS or NodeJS, please use [the `fastestsmallesttextencoderdecoder` npm repository](https://npmjs.org/package/fastestsmallesttextencoderdecoder), [this minified file](https://github.com/anonyco/FastSmallTextEncoderDecoder/blob/master/NodeJS/EncoderAndDecoderNodeJS.min.js), or the corresponding [source code file](https://github.com/anonyco/FastSmallTextEncoderDecoder/blob/master/NodeJS/EncoderAndDecoderNodeJS.src.js). To install via npm, use the following code.
37
+
For dropping into either RequireJS or NodeJS, please use [the `fastestsmallesttextencoderdecoder` npm repository](https://npmjs.org/package/fastestsmallesttextencoderdecoder), [this minified file](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/blob/master/NodeJS/EncoderAndDecoderNodeJS.min.js), or the corresponding [source code file](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/blob/master/NodeJS/EncoderAndDecoderNodeJS.src.js). To install via npm, use the following code.
38
38
39
39
```Bash
40
40
npm install fastestsmallesttextencoderdecoder
@@ -44,11 +44,11 @@ Alternatively, if one do not know how to use the command line, save the script c
44
44
45
45
46
46
* fastestsmallesttextencoderdecoder
47
-
- Microsoft Windows batch: [install-FastSmallTextEncoderDecoder-windows.bat](https://raw.githubusercontent.com/anonyco/FastSmallTextEncoderDecoder/master/gh-pages/install-FastSmallTextEncoderDecoder-windows.bat)
48
-
- Bash for Apple MacOS and Linux (e.x. Ubuntu): [install-FastSmallTextEncoderDecoder-unix.sh](https://raw.githubusercontent.com/anonyco/FastSmallTextEncoderDecoder/master/gh-pages/install-FastSmallTextEncoderDecoder-unix.sh)
47
+
- Microsoft Windows batch: [install-FastestSmallestTextEncoderDecoder-windows.bat](https://raw.githubusercontent.com/anonyco/FastestSmallestTextEncoderDecoder/master/gh-pages/install-FastestSmallestTextEncoderDecoder-windows.bat)
48
+
- Bash for Apple MacOS and Linux (e.x. Ubuntu): [install-FastestSmallestTextEncoderDecoder-unix.sh](https://raw.githubusercontent.com/anonyco/FastestSmallestTextEncoderDecoder/master/gh-pages/install-FastestSmallestTextEncoderDecoder-unix.sh)
49
49
* fastestsmallesttextencoderdecoder-encodeinto
50
-
- Microsoft Windows batch: [install-FastSmallTextEncoderDecoder-encodeInto.bat](https://raw.githubusercontent.com/anonyco/FastSmallTextEncoderDecoder/master/gh-pages/install-FastSmallTextEncoderDecoder-encodeInto.bat)
51
-
- Bash for Apple MacOS and Linux (e.x. Ubuntu): [install-FastSmallTextEncoderDecoder-encodeInto.sh](https://raw.githubusercontent.com/anonyco/FastSmallTextEncoderDecoder/master/gh-pages/install-FastSmallTextEncoderDecoder-encodeInto.sh)
50
+
- Microsoft Windows batch: [install-FastestSmallestTextEncoderDecoder-encodeInto.bat](https://raw.githubusercontent.com/anonyco/FastestSmallestTextEncoderDecoder/master/gh-pages/install-FastestSmallestTextEncoderDecoder-encodeInto.bat)
51
+
- Bash for Apple MacOS and Linux (e.x. Ubuntu): [install-FastestSmallestTextEncoderDecoder-encodeInto.sh](https://raw.githubusercontent.com/anonyco/FastestSmallestTextEncoderDecoder/master/gh-pages/install-FastestSmallestTextEncoderDecoder-encodeInto.sh)
52
52
53
53
54
54
After installing via npm, one can use `require("fastestsmallesttextencoderdecoder")`. Alternatively, one can drop the *EncoderAndDecoderNodeJS.min.js* file into the same directory as their NodeJS script and do `require("./EncoderAndDecoderNodeJS.min.js")`. Both methods are functionally equivalent.
@@ -64,7 +64,7 @@ Then, add `import 'fastestsmallesttextencoderdecoder';` to the polyfills.ts file
64
64
65
65
## Encode Into branch
66
66
67
-
The [encodeInto](https://raw.githubusercontent.com/anonyco/FastSmallTextEncoderDecoder/master/encodeInto/) folder of this repository contains an encodeInto build of the main project. The encodeInto branch
67
+
The [encodeInto](https://raw.githubusercontent.com/anonyco/FastestSmallestTextEncoderDecoder/master/encodeInto/) folder of this repository contains an encodeInto build of the main project. The encodeInto branch
68
68
69
69
## Browser Support
70
70
@@ -145,7 +145,7 @@ Or, one can use the new and shiny [ES6 module importation](https://developer.moz
145
145
146
146
## Demonstration
147
147
148
-
Visit the [GithubPage](https://anonyco.github.io/FastSmallTextEncoderDecoder/gh-pages/) to see a demonstation. As seen in the Web Worker [hexWorker.js](https://github.com/anonyco/FastSmallTextEncoderDecoder/blob/master/gh-pages/hexWorker.js), the Github Pages demonstration uses a special [encoderAndDecoderForced.src.js](https://github.com/anonyco/FastSmallTextEncoderDecoder/blob/master/gh-pages/encoderAndDecoderForced.src.js) version of this library to forcefully install the TextEncoder and TextDecoder even when there is native support. That way, this demonstraton should serve to truthfully demonstrate this polyfill.
148
+
Visit the [GithubPage](https://anonyco.github.io/FastestSmallestTextEncoderDecoder/gh-pages/) to see a demonstation. As seen in the Web Worker [hexWorker.js](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/blob/master/gh-pages/hexWorker.js), the Github Pages demonstration uses a special [encoderAndDecoderForced.src.js](https://github.com/anonyco/FastestSmallestTextEncoderDecoder/blob/master/gh-pages/encoderAndDecoderForced.src.js) version of this library to forcefully install the TextEncoder and TextDecoder even when there is native support. That way, this demonstraton should serve to truthfully demonstrate this polyfill.
149
149
150
150
## npm Project
151
151
This project can be found on [npm here at this link](https://npmjs.org/package/fastestsmallesttextencoderdecoder).
@@ -155,7 +155,7 @@ This project can be found on [npm here at this link](https://npmjs.org/package/f
155
155
On Linux, the project can be developed by cloning it with the following command line. The development scripts are designed to be interpeted by Dash, and whether they work on Mac OS is unknown, but they certainly won't work on Windows.
156
156
157
157
```Bash
158
-
git clone https://github.com/anonyco/FastSmallTextEncoderDecoder.git;cdFastSmallTextEncoderDecoder; npm run install-dev
158
+
git clone https://github.com/anonyco/FastestSmallestTextEncoderDecoder.git;cdFastestSmallestTextEncoderDecoder; npm run install-dev
159
159
```
160
160
161
161
Emphasize the `npm run install-dev`, which downloads `closure-compiler.jar` into the repository for minifying the files.
0 commit comments