Noteworthy Programming Masterpiece
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

hexo-caniuse

0.1.4 • Public • Published

hexo-caniuse NPM version Dependency Status

Hexo tag to embed code snippet from caniuse

Install

Install using npm.

$ npm install hexo-caniuse --save

Install using yarn.

$ yarn add hexo-caniuse

Usage

Create The CanIUse Embed with following syntax:

  {% caniuse feature periods|current %}

How to get arguments from caniuse embed

This is something generated by caniuse:

<p class="ciu_embed" data-feature="css-variables" data-periods="current">
  <a href="http://caniuse.com/#feat=css-variables">Can I Use css-variables?</a> Data on support for the css-variables feature across the major browsers from caniuse.com.
</p>
<script async src="//cdn.jsdelivr.net/caniuse-embed/1.1.0/caniuse-embed.min.js"></script>

You can extract required arguments:

Field Value
data-feature Choose caniuse Feature feature
data-periods Select the Browser Versions to Display

License

MIT

NPM downloads

install

npm i hexo-caniuse

Downloadsweekly downloads

4

version

0.1.4

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability