simple-ampify
v1.1.0
Published
A simple plain HTML to AMP converter for personal use
Downloads
13
Maintainers
Readme
simple-ampify
A simple plain HTML to AMP converter for personal use
Install
$ yarn add simple-ampify
# OR
$ npm i simple-ampify
Usage
import ampify from 'simple-ampify';
const result = ampify(htmlString)
With Options
import ampify from 'simple-ampify';
const options = {
analytics : {
id: 'UA-XXXXXX-XX'
},
adsense : {
id: 'XXXXXXXXX'
}
}
const result = ampify(htmlString, options)
Copyright © 2020 Built with ❤️ by Irfan Maulana