New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

fps-indicator

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fps-indicator

Tiny fps meter with customizable colors

latest
Source
npmnpm
Version
1.3.0
Version published
Weekly downloads
92
-21.37%
Maintainers
1
Weekly downloads
 
Created
Source

fps-indicator stable

Micro fps indicator for demo/tests.

fps-indicator

Usage

npm install fps-indicator

const createFps = require('fps-indicator');
let fps = createFps();

API

var fps = createFps(container|options?)

Create fps indicator from position string or options object:

OptionDescription
containerSelector or element to append, by default document.body.
periodUpdate period in ms, defaults to 500.
maxMax value of FPS, corresponding to upper bound, default is 90.
colorColor of indicator, by default is inherited.
positiontop-left, top-right, bottom-left (default), bottom-right.
styleCSS style string or css object. Eg. fps({style: 'padding: 20px; text-shadow: 0 0 2px black'})

Similar

stats.js — oldschool fps meter for apps, no colors customization.
fpsmeter — good-looking fps meter, but no npm package.

Keywords

fps

FAQs

Package last updated on 25 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts