diff --git a/LICENSE b/LICENSE index 4cef10e..9d2e516 100644 --- a/LICENSE +++ b/LICENSE @@ -1,19 +1,19 @@ The MIT License -Copyright (c) 2013 Brian J. Brennan +Copyright (c) 2013-2024 Brian J. Brennan -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the -Software, and to permit persons to whom the Software is furnished to do so, +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal in +the Software without restriction, including without limitation the rights to use, +copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the +Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in all +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, -INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, +INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index bd4d49c..c53537a 100644 --- a/README.md +++ b/README.md @@ -18,9 +18,9 @@ npm install buffer-crc32 # example ```js -var crc32 = require('buffer-crc32'); +const crc32 = require('buffer-crc32'); // works with buffers -var buf = Buffer([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]); +const buf = Buffer([0x00, 0x73, 0x75, 0x70, 0x20, 0x62, 0x72, 0x6f, 0x00]); crc32(buf); // -> // has convenience methods for getting signed or unsigned ints @@ -32,11 +32,11 @@ crc32.unsigned(buf); // -> 2488970058 crc32('自動販売機'); // -> // and works in append mode too -var partialCrc = crc32('hey'); -var partialCrc = crc32(' ', partialCrc); -var partialCrc = crc32('sup', partialCrc); -var partialCrc = crc32(' ', partialCrc); -var finalCrc = crc32('bros', partialCrc); // -> +const partialCrc = crc32('hey'); +const partialCrc = crc32(' ', partialCrc); +const partialCrc = crc32('sup', partialCrc); +const partialCrc = crc32(' ', partialCrc); +const finalCrc = crc32('bros', partialCrc); // -> ``` # tests diff --git a/package.json b/package.json index dc29702..73cbe17 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Brian J. Brennan ", "name": "buffer-crc32", "description": "A pure javascript CRC32 algorithm that plays nice with binary data", - "version": "0.2.13", + "version": "1.0.0", "licenses": [ { "type": "MIT",