1.1.0 • Published 4 years ago

simple-ampify v1.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

simple-ampify

A simple plain HTML to AMP converter for personal use

npm.io npm.io npm.io

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