{"_id":"@ladjs/time-require","_rev":"299669","name":"@ladjs/time-require","description":"Displays the execution time for Node.js modules loading; inspired by @sindresorhus 'time-grunt'","dist-tags":{"latest":"0.1.4"},"maintainers":[{"name":"shaunwarman","email":"shaunwarman1@gmail.com"},{"name":"spence-s","email":"sasnyde2@gmail.com"}],"time":{"modified":"2021-06-03T19:03:42.000Z","created":"2017-12-27T05:50:32.647Z","0.1.4":"2017-12-27T05:50:32.647Z"},"users":{},"author":{"name":"Jaguard OSS","email":"oss@jaguard.com","url":"http://oss.jaguard.com"},"repository":{"type":"git","url":"git://github.com/ladjs/time-require.git"},"versions":{"0.1.4":{"name":"@ladjs/time-require","description":"Displays the execution time for Node.js modules loading; inspired by @sindresorhus 'time-grunt'","version":"0.1.4","author":{"name":"Jaguard OSS","email":"oss@jaguard.com","url":"http://oss.jaguard.com"},"bugs":{"url":"https://github.com/ladjs/time-require/issues"},"dependencies":{"chalk":"^0.4.0","date-time":"^0.1.1","pretty-ms":"^0.2.1","text-table":"^0.2.0"},"devDependencies":{"gulp":"~3.6.0","gulp-cached":"~0.0.3","gulp-clean":"~0.2.4","gulp-docco":"~0.0.4","gulp-if":"~1.0.0","gulp-jasmine":"~0.2.0","gulp-jscs":"~0.4.0","gulp-jsdoc":"~0.1.4","gulp-jshint":"~1.5.2","gulp-jsonlint":"~0.0.3","gulp-load-plugins":"~0.5.0","gulp-markdown":"~0.1.2","gulp-markdown-pdf":"~0.2.0","gulp-match":"~0.0.2","gulp-notify":"~1.2.5","gulp-util":"~2.2.14","jshint-stylish":"~0.1.5","run-sequence":"~0.3.6"},"engines":{"node":">= 0.10.0"},"homepage":"https://github.com/ladjs/time-require","keywords":["measure","profile","require","time"],"license":"MIT","main":"src/timeRequire.js","repository":{"type":"git","url":"git://github.com/ladjs/time-require.git"},"scripts":{"start":"gulp watch","test":"gulp test"},"gitHead":"ce90fc53c6c8129b0e487be9c06a0404e341ff53","_id":"@ladjs/time-require@0.1.4","_npmVersion":"5.6.0","_nodeVersion":"8.9.0","_npmUser":{"name":"niftylettuce","email":"niftylettuce@gmail.com"},"dist":{"shasum":"5c615d75fd647ddd5de9cf6922649558856b21a1","size":40213,"noattachment":false,"key":"/@ladjs/time-require/-/@ladjs/time-require-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@ladjs/time-require/download/@ladjs/time-require-0.1.4.tgz"},"maintainers":[{"name":"shaunwarman","email":"shaunwarman1@gmail.com"},{"name":"spence-s","email":"sasnyde2@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/time-require-0.1.4.tgz_1514353831708_0.8788019781932235"},"directories":{},"publish_time":1514353832647,"_hasShrinkwrap":false,"_cnpm_publish_time":1514353832647}},"readme":"# `time-require` @ [![Jaguard OSS 100%](http://img.shields.io/badge/Jaguard_OSS-100%-red.svg)](http://oss.jaguard.com) [![Built with gulp.js](http://img.shields.io/badge/built%20with-gulp.js-red.svg)](http://gulpjs.com)\n\n> Displays the execution time for Node.js modules loading by hooking and tracing all `require()` calls.\nThis module was inspired by [@sindresorhus](https://twitter.com/sindresorhus)'s [time-grunt](https://github.com/sindresorhus/time-grunt).\n\n## Project status\n- NPM version: [![NPM version](https://badge.fury.io/js/time-require.svg)](https://www.npmjs.org/package/time-require)\n- NPM downloads: [![NPM downloads](http://img.shields.io/npm/dm/time-require.svg)](https://www.npmjs.org/package/time-require)\n- GitHub release: [![GitHub Release](http://img.shields.io/github/release/jaguard/time-require.svg)](https://www.npmjs.org/package/time-require)\n- Travis-CI build: [![Build Status](http://img.shields.io/travis/jaguard/time-require.svg)](http://travis-ci.org/jaguard/time-require)\n- Drone.io build: [![Build Status](https://drone.io/github.com/jaguard/time-require/status.png)](https://github.com/jaguard/time-require)\n- Dependencies: [![Dependencies status](https://david-dm.org/jaguard/time-require/status.svg?theme=shields.io)](https://david-dm.org/jaguard/time-require#info=dependencies)\n- Dev Dependencies: [![Dev Dependencies status](https://david-dm.org/jaguard/time-require/dev-status.svg?theme=shields.io)](https://david-dm.org/jaguard/time-require#info=devDependencies)\n\nDefault usage (non-verbose) showing required modules in loaded order, above 1% treshold\n![default](doc/time_require_default.png)\n\nVerbose (all) & sorted usage showing all required modules in sorted order\n![verbose-sorted](doc/time_require_verbose_sorted.png)\n\n## Install\n\nInstall with [npm](https://npmjs.org/package/time-require)\n\n```\nnpm install --save time-require\n```\n\n## Usage\n\n1. Embedded usage, generally as first `require()` call in your main module.\n```js\nrequire(\"time-require\");\n```\n2. External usage with `--require` preload supported by [Liftoff](https://github.com/tkellen/node-liftoff) driven CLI modules like [gulp.js](http://gulpjs.com/) or [Grunt-Next](https://github.com/gruntjs/grunt-next)\n```\ngulp --require time-require --sorted\n```\n3. If you're using [gulp.js](http://gulpjs.com/), use instead [gulpt](https://github.com/jaguard/gulpt), a `gulp` CLI wrapper that automatically preload `time-require`.\n```\nnpm install -g gulpt\ngulpt build --sorted\n```\n\n## Display layout\n\nModules loading that take less than `1%` of the total time are hidden to reduce clutter.\nTo show **all** the modules use the `--verbose` (or `--V`) flag on the running CLI.\nTo **sort** the modules according to the loading time (longest on top) use the `--sorted` (or `--s`) flag on the running CLI.\n\n## Documentation\n\nDetailed API documentation can be found in ['doc'](doc/api.md) folder.\n\n## Development\n\nDetailed development documentation can be found in ['doc'](doc/dev.md) folder.\n\n## License\n\n[MIT](https://github.com/jaguard/time-require/raw/master/LICENSE) &copy; [Jaguard OSS](http://oss.jaguard.com)\n\n## Changelog\n\n- v0.1.2 (2014.04.20)\n\t* README.md: add NPM downloads and GitHub release, add `gulpt` usage, remove BitBucket hosting/refs\n\t* package.json: update dependencies\n\t* .npmignore: remove all development-related files from NPM (clone the repo instead)\n- v0.1.1 (2014.04.10)\n\t* gulpfile.js: add `notifyError` for stream error notification, add `seqTask` for sequential task control, fix `project.js` config replacing `lib/` with `src/`\n\t* README.md: detail project hosting [@BitBucket](https://bitbucket.org/jaguard/time-require) & mirror [@GitHub](https://github.com/jaguard/time-require).\n\t* LICENSE.md renamed to LICENSE to keep it as a simple text file\n\t* package.json: set the [GitHub](https://github.com/jaguard/time-require) mirror as repository, add `run-sequence` for task order control, add `gulp-notify` for notification support\n- v0.1.0 (2014.04.10)\n\t+ Added `.travis.yml` file for travis-ci.org build support\n\t+ Published `time-require` module to [npm](https://www.npmjs.org/package/time-require)\n\t* Include screenshoots as absolute links\n- v0.0.1 (2014.03.10)\n\t+ Initial release","_attachments":{},"homepage":"https://github.com/ladjs/time-require","bugs":{"url":"https://github.com/ladjs/time-require/issues"},"license":"MIT"}