An npm package to get the non-amp version of an amp site.
const nonAmp = require("non-amp-site")
nonAmp("https://website.com/amp/article.html").then(console.log)
// logs "https://website.com/article.html" or whatever the non-amp version is
yarn add non-amp-site
or
npm install non-amp-site --save
This project is licensed under the MIT License - see the LICENSE.md file for details