Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thejmazz/whs-module-statsjs
WhitestormJS module for JavaScript Performance Monitor ⚡⌛
https://github.com/thejmazz/whs-module-statsjs
Last synced: 19 days ago
JSON representation
WhitestormJS module for JavaScript Performance Monitor ⚡⌛
- Host: GitHub
- URL: https://github.com/thejmazz/whs-module-statsjs
- Owner: thejmazz
- License: mit
- Created: 2017-03-12T03:13:45.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-12T03:27:36.000Z (almost 8 years ago)
- Last Synced: 2024-11-07T08:51:33.235Z (2 months ago)
- Language: JavaScript
- Homepage: https://github.com/WhitestormJS/whs-module-statsjs
- Size: 13.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# whs-module-statsjs - Module for JavaScript Performance Monitor
[![NPM Version](https://img.shields.io/npm/v/whs-module-statsjs.svg?style=flat-square)](https://www.npmjs.com/package/whs-module-statsjs)
> Based of [stats.js](https://github.com/mrdoob/stats.js). Thanks to [@mrdoob](https://github.com/mrdoob)> Go to [WhitestormJS/whitestorm.js](https://github.com/WhitestormJS/whitestorm.js)
## Usage
```javascript
const app = new WHS.App([
new WHS.app.ElementModule(), // This module is required
// other modules
new StatsModule(StatsModule.codes.fps) // or just "0"
]);
```## Exported dependencies
Name | Description | Alias
--------|--------------------------------------------------------------------------|------
`stats` | `Stats` object provided by [stats.js](https://github.com/mrdoob/stats.js)| `app.$stats`See [stats.js example](https://github.com/mrdoob/stats.js#usage) for full codes list
## Screenshots
![Screenshot](http://i.imgur.com/TMUoJ88.png)