A CLI to generate a json file with the CSS features/prefixes based on caniuse data.
npm install -g css-prefix-data
Usage: css-prefixes-data [options]
Options:
-h, --help output usage information
-V, --version output the version number
-s, --scope <browser scope> The browser scope
-f, --filename [filename] The filename
css-prefixes-data -s 'last 2 versions' -f 'prefixes.json'
It will generate the file in the current working directory.
The data in the file will look like this:
[
{
"name":"columns",
"prefixes":["-webkit-"]
},
{
"name":"flex",
"prefixes":["-webkit-", "-ms-"]
},
...
]