ES6 feature detection library ES-Checker

ES6 feature detection library ES-Checker Original author: Ruan Yifeng Date: June 30, 2015 Two weeks ago, the “ECMAScript International Standard (6th Edition)” was officially passed, and the next-generation JavaScript language was finalized. ECMAScript 6 (hereinafter referred to as ES6) has added more than 20 major language features. Various browsers and Node.js are actively supported, but… Continue reading ES6 feature detection library ES-Checker

Code Coverage Tool Istanbul Getting Started Tutorial

Code Coverage Tool Istanbul Getting Started Tutorial Original author: Ruan Yifeng Date: June 8, 2015 When testing, we often care about whether all the code has been tested. This indicator is called “code coverage” (code coverage). It has four measurement dimensions. Line coverage : Has every line been executed? Function coverage : Is every function… Continue reading Code Coverage Tool Istanbul Getting Started Tutorial

Node.js command line program development tutorial

Node.js command line program development tutorial Original author: Ruan Yifeng Date: May 26, 2015 Whether a programming language is easy to use, to a large extent, depends on the ability to develop command-line programs. Node.js is currently one of the most popular development tools. How to use it to develop command line programs is a… Continue reading Node.js command line program development tutorial

The principle and realization of browser loading CommonJS module

The principle and realization of browser loading CommonJS module Original author: Ruan Yifeng Date: May 23, 2015 Just this weekend, npm surpassed cpan and became the largest software module warehouse on the planet. The modules of npm are all written in JavaScript language, but browsers can’t use them because they don’t support CommonJS format. In… Continue reading The principle and realization of browser loading CommonJS module