amazon-asin is a neat little NodeJS package that extracts Amazon ASIN/ISBN from Amazon links. It supports Amazon shortened permalinks and... that's about it.
Get it here: https://www.npmjs.com/package/amazon-asin
Join un on GitHub: https://github.com/vaiden/amazon-asin