Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

caniuse-component

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caniuse-component

Up-to-date caniuse.com data for your slides

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Caniuse Component

Instant, up-to-date, and theme-able browser statistics for your presentations (so you don't have to update your slides the night before!)

Here is a Demo 😄

  • customizable style based on a variable system
  • adaptive text color based on background source
  • automatic browser logos & caniuse data
  • not compatible with IE 6/7

Usage

Node Implementation

Install via NPM: npm install caniuse-component -- include the js and css source.

Reveal.js Implementation

To use this with Reveal.js, npm install, then apply this source as a plugin:

Reveal.initialize({
  // setup things here:
  // ...

  // plugins here:
  dependencies: [
    { src: '../node_modules/caniuse-component/scripts.js', async: true },
    { src: '../node_modules/caniuse-component/styles.css' }
  ]
});

Then, include this element on your page:

<ul id="caniuse--result-list"
    data-propName="css-filters"
    data-browsers="opera safari firefox chrome edge">
</ul>
namefunctionusageoptions
idApplies styles to listid="caniuse--result-list"You only get one option unless you make your own
propNameCSS Property Namedata-propName="css-filters"See Caniuse API and options
browsersBrowsers to check support fromdata-browsers="firefox chrome safari"edge, chrome, safari, ie, firefox, opera

Development & Contribution

NPM scripts are used as the build system, so to develop, run: npm run dev. Consumable files are distributed in the root, and source files live within /src.

To contribute: Please clone this down and submit a PR, or open an issue. 😘

Credits

Keywords

FAQs

Package last updated on 26 Feb 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc