Skip to main content

Update caniuse cli

caniuse-cmd (https://github.com/sgentle/caniuse-cmd) committed on Apr 28, 2017 last time. But try npm view caniuse-cmd and have a look. To update npm up caniuse-cmd.

Much more important is caniuse-db (https://www.npmjs.com/package/caniuse-db) updates regularly. Look for fulldata-json-commits at https://github.com/Fyrd/caniuse.

Check with npm view caniuse-db and update with npm up caniuse-db.

All in one:

caniuse-update

what is:

echo "\033[0;31mBefore update\033[0m" && \
echo "\033[0;33mcaniuse-cmd\033[0m" && npm view caniuse-cmd | \
grep --color=never -e 'latest' -e 'published' && \
echo "\033[0;33mcaniuse-db\033[0m" && npm view caniuse-db | \
grep --color=never -e 'latest' -e 'published' && \
npm up caniuse-cmd -s && \
npm up caniuse-db -s && \
echo "" && \
echo "\033[0;32mAfter update\033[0m" && \
echo "\033[0;33mcaniuse-cmd\033[0m" && npm view caniuse-cmd | \
grep --color=never -e 'latest' -e 'published' && \
echo "\033[0;33mcaniuse-db\033[0m" && npm view caniuse-db | \
grep --color=never -e 'latest' -e 'published'