visionmedia / stats Goto Github PK
View Code? Open in Web Editor NEWJavaScript source statistics with simple API & CLI written with node.js
JavaScript source statistics with simple API & CLI written with node.js
some dirs still have .js
Dig into directories.
Installed module from npm and it crashes regardless of what opts I try.
Install:
$ npm install -g stats
Run:
$ stats --totals dirName
/usr/local/lib/node_modules/stats/lib/parser.js:249
if (!options.ignoreParseErrors) throw err;
^
SyntaxError: Unexpected token name, expected punc on line 104:22:
' for (routeContainer of routes) {'
at Object.module.exports [as parse] (/usr/local/lib/node_modules/stats/lib/parser.js:244:11)
Versions:
$ npm -v
2.11.1
$ node -v / iojs -v
v2.3.0
OS:
Mac OS X 10.10.1
Hi,
thanks for this module! It's working great for some of my code, but when running it over all of transloadit, I get a crash like this:
/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:272
throw new JS_Parse_Error(message, line, col, pos);
^
TypeError: object is not a function
at Object.CALL_NON_FUNCTION (native)
at new JS_Parse_Error (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:261:20)
at js_error (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:272:15)
at croak (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:720:17)
at token_error (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:727:17)
at unexpected (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:733:17)
at Object.semicolon [as 1] (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:753:51)
at prog1 (/usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:1291:28)
at /usr/local/lib/node_modules/stats/node_modules/uglify-js/lib/parse-js.js:860:40
at block_ (/usr/local/lib/node_modules/stats/node_modules/
Due to the lack of file / line number info, I can't really provide more info.
Hey,
I get an EMFILE, Too many open files error when using stats in a large project. Maybe you should also exclude node_modules directories and git submodules directly.
And shouldn't it show the help information if no path is given?
SyntaxError: Unexpected token: name (React) on line 0:7:
'import React from \'react\';'
stats lib/parser.js
/home/criso/local/lib/node_modules/stats/bin/stats:97
var pending = files.length;
^
TypeError: Cannot read property 'length' of undefined
at /home/criso/local/lib/node_modules/stats/bin/stats:97:22
at /home/criso/local/lib/node_modules/stats/lib/find.js:34:9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.