Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

amps-in-the-trunk

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

amps-in-the-trunk - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "amps-in-the-trunk",
"version": "1.0.0",
"version": "1.0.1",
"description": "Eats HTML, spits out AMP pages",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,10 +16,10 @@ # A module to transform HTML directly to Google AMP HTML

- Use a different layout that:
- doesn't have all the usual analytics <script> tags
- inlines stylesheets
- Takes the HTML generated by your templating engine and use amps-in-the-trunk to make AMP HTML <amp-img>
- doesn't have all the usual analytics `<script>` tags
- inlines all stylesheets
- Take the HTML generated by your templating engine and use amps-in-the-trunk to turn `<img>` into AMP HTML `<amp-img>`
So you're using express, this looks like
- Use 'layout=' to specify the AMP layout rather than your normal one
- Provide a callback to `res.render()` to allow us to intercept the rendered HTML and convert it to AMP
- Use `layout=` to specify the AMP layout rather than your normalone
- Provide a callback to `res.render()` to allow us to intercept the rendered HTML and convert it to AMP:

@@ -66,3 +66,4 @@ var ampsInTheTrunk = require('amps-in-the-trunk')()

## Pull requests welcome
This is the first version of the module, created really for my own needs. I'm quite happy to take pull requests for additional features.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc