Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)
by sindresorhusJavaScript
Last 12 weeks · 0 commits
4 of 6 standards met
I am using npm version:- 6.14.5 and node version:- 12.16.1 Following are steps to build and test the maxmin package: git clone https://github.com/sindresorhus/maxmin.git cd maxmin npm install npm test After performing npm test, I am getting following error, so can you help me please in this or suggest me steps if I missing something : maxmin@2.1.0 test /maxmin xo && ava test.js:5:1 ✖ 5:1 Block-scoped variables in strict mode are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax ✖ 6:1 Block-scoped variables in strict mode are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax ✖ 8:17 Arrow functions are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax ✖ 13:17 Arrow functions are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax ✖ 14:31 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins ✖ 14:49 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins ✖ 15:31 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins ✖ 15:49 The Buffer.from is not supported until Node.js 4.5.0. The configured version range is >=0.12. node/no-unsupported-features/node-builtins ✖ 18:18 Arrow functions are not supported until Node.js 4.0.0. The configured version range is >=0.12. node/no-unsupported-features/es-syntax index.js:2:1 ✖ 2:1 Unexpected var, use let or const instead. no-var ✖ 3:1 Unexpected var, use let or const instead. no-var ✖ 4:1 Unexpected var, use let or const instead. no-var ✖ 5:1 Unexpected var, use let or const instead. no-var ✖ 6:1 Unexpected var, use let or const instead. no-var ✖ 13:2 Unexpected var, use let or const instead. no-var ✖ 13:6 The variable ret should be named returnValue. A more descriptive name will do too. unicorn/prevent-abbreviations 16 errors npm ERR! Test failed. See above for more details.
Repository: sindresorhus/maxmin. Description: Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip) Stars: 58, Forks: 13. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v4.1.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 85%. Top contributors: sindresorhus, philippsimon, Richienb, ntwb, TomerAberbach.