PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
cli-width
/
coverage
/
lcov-report
/
cli-width
<!doctype html> <html lang="en"> <head> <title>Code coverage report for cli-width/index.js</title> <meta charset="utf-8"> <link rel="stylesheet" href="../prettify.css"> <link rel="stylesheet" href="../base.css"> <style type='text/css'> div.coverage-summary .sorter { background-image: url(../sort-arrow-sprite.png); } </style> </head> <body> <div class="header high"> <h1>Code coverage report for <span class="entity">cli-width/index.js</span></h1> <h2> Statements: <span class="metric">100% <small>(13 / 13)</small></span> Branches: <span class="metric">100% <small>(8 / 8)</small></span> Functions: <span class="metric">100% <small>(1 / 1)</small></span> Lines: <span class="metric">100% <small>(13 / 13)</small></span> Ignored: <span class="metric"><span class="ignore-none">none</span></span> </h2> <div class="path"><a href="../index.html">All files</a> » <a href="index.html">cli-width/</a> » index.js</div> </div> <div class="body"> <pre><table class="coverage"> <tr><td class="line-count">1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29</td><td class="line-coverage"><span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-yes">6</span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">5</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">5</span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">4</span> <span class="cline-any cline-yes">2</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">2</span> <span class="cline-any cline-yes">1</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-yes">3</span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span> <span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">'use strict'; exports = module.exports = cliWidth; exports.defaultWidth = 0; function cliWidth() { if (process.stdout.getWindowSize) { return process.stdout.getWindowSize()[0]; } else { var tty = require('tty'); if (tty.getWindowSize) { return tty.getWindowSize()[1]; } else { if (process.env.CLI_WIDTH) { var width = parseInt(process.env.CLI_WIDTH, 10); if (!isNaN(width)) { return width; } } return exports.defaultWidth; } } }; </pre></td></tr> </table></pre> </div> <div class="footer"> <div class="meta">Generated by <a href="http://istanbul-js.org/" target="_blank">istanbul</a> at Fri Oct 16 2015 08:40:49 GMT-0400 (EDT)</div> </div> <script src="../prettify.js"></script> <script> window.onload = function () { if (typeof prettyPrint === 'function') { prettyPrint(); } }; </script> <script src="../sorter.js"></script> </body> </html>
[-] index.js.html
[edit]
[+]
..
[-] index.html
[edit]