https://github.com/coolreader18/non-amp-site
An npm package to get the non-amp version of an amp site.
https://github.com/coolreader18/non-amp-site
Last synced: 10 months ago
JSON representation
An npm package to get the non-amp version of an amp site.
- Host: GitHub
- URL: https://github.com/coolreader18/non-amp-site
- Owner: coolreader18
- License: mit
- Created: 2018-01-19T15:52:52.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T01:13:18.000Z (about 7 years ago)
- Last Synced: 2025-03-12T14:58:12.059Z (11 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# non-amp-site
An npm package to get the non-amp version of an amp site.
## Usage
```node
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
```
## Installation
```shell
yarn add non-amp-site
```
or
```shell
npm install non-amp-site --save
```
## License
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details