https://github.com/mazipan/simple-ampify
⚡ A simple plain HTML to AMP converter for personal use
https://github.com/mazipan/simple-ampify
amp amp-converter amp-html
Last synced: 7 months ago
JSON representation
⚡ A simple plain HTML to AMP converter for personal use
- Host: GitHub
- URL: https://github.com/mazipan/simple-ampify
- Owner: mazipan
- License: mit
- Created: 2020-05-18T13:34:04.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-30T13:18:59.000Z (over 4 years ago)
- Last Synced: 2025-02-09T08:18:52.484Z (8 months ago)
- Topics: amp, amp-converter, amp-html
- Language: HTML
- Homepage:
- Size: 1.06 MB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-ampify
⚡ A simple plain HTML to AMP converter for personal use
  
## Install
```bash
$ yarn add simple-ampify
# OR
$ npm i simple-ampify
```## Usage
```js
import ampify from 'simple-ampify';const result = ampify(htmlString)
```## With Options
```js
import ampify from 'simple-ampify';const options = {
analytics : {
id: 'UA-XXXXXX-XX'
},
adsense : {
id: 'XXXXXXXXX'
}
}
const result = ampify(htmlString, options)
```## Support me
- Via [trakteer](https://trakteer.id/mazipan)
- Direct support, [send me an email](mailto:mazipanneh@gmail.com)---
Copyright © 2020 Built with ❤️ by Irfan Maulana