Skip to content

Commit

Permalink
Minor updates to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
101arrowz committed Dec 21, 2020
1 parent b91fb87 commit 88e0bac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ Other than that, `fflate` is completely ES3, meaning you probably won't even nee
## Testing
You can validate the performance of `fflate` with `npm`/`yarn`/`pnpm` `test`. It validates that the module is working as expected, ensures the outputs are no more than 5% larger than competitors at max compression, and outputs performance metrics to `test/results`.

Note that the time it takes for the CLI to show the completion of each test is not representative of the time each package took, so please check the JSON output if you want accurate masurements.
Note that the time it takes for the CLI to show the completion of each test is not representative of the time each package took, so please check the JSON output if you want accurate measurements.

## License

Expand Down
4 changes: 2 additions & 2 deletions demo/components/code-box/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var processFile = function(i) {
/*
level: ALREADY_COMPRESSED.indexOf(
file.name.slice(file.name.lastIndexOf('.') + 1)
file.name.slice(file.name.lastIndexOf('.') + 1).toLowerCase()
) == -1 ? 6 : 0
*/
Expand Down Expand Up @@ -147,7 +147,7 @@ var ALREADY_COMPRESSED = [
// Yet again, this is necessary for parallelization.
var processFile = function(i) {
var file = files[i];
var ext = file.name.slice(file.name.lastIndexOf('.') + 1);
var ext = file.name.slice(file.name.lastIndexOf('.') + 1).toLowerCase();
fileToU8(file, function(buf) {
// With fflate, we can choose which files we want to compress
zipObj[file.name] = [buf, {
Expand Down

0 comments on commit 88e0bac

Please sign in to comment.