simple-ampify
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

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

Package Sidebar

Install

npm i simple-ampify

Weekly Downloads

2

Version

1.1.0

License

MIT

Unpacked Size

39.1 kB

Total Files

13

Last publish

Collaborators

  • irfan.maulana