From 3caf053bbd62b83bd3be4f0f641afa135a34ae63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20K=C3=B6=C3=B6k?= Date: Wed, 27 Mar 2019 20:24:27 +0200 Subject: [PATCH] fix autoBom documentation --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 442e3e3..01239f5 100644 --- a/README.md +++ b/README.md @@ -60,10 +60,10 @@ import { saveAs } from 'file-saver'; ``` ```js -FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBOM }) +FileSaver saveAs(Blob/File/Url, optional DOMString filename, optional Object { autoBom }) ``` -Pass `{ autoBOM: true }` if you want FileSaver.js to automatically provide Unicode text encoding hints (see: [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark)). +Pass `{ autoBom: true }` if you want FileSaver.js to automatically provide Unicode text encoding hints (see: [byte order mark](https://en.wikipedia.org/wiki/Byte_order_mark)). Note that this is only done if your blob type has `charset=utf-8` set. Examples --------