New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@s-ui/amp-runner

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@s-ui/amp-runner

Using aws lambdas function we can provide an AMP versión of any page

  • 1.9.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

AMPRunner

Using aws lambdas function we can provide an AMP versión of any page

Install

Clone the repo and inside packages/serverless run $ npm install

Development

To start to develop run npm start that will put a server listen in at the port 3000 by default o any port setting in the process.env.PORT variable.

The server will response to GET request with the format:

http://localhost:3000/amp/[URL_CANONICAL_ORIGINAL]?package=[AMP_PACKAGE_TEMPLATE]&organization=[ORG_AMP_PACKAGE_TEMPLATE]&version=[VERSION]

Url example:

http://localhost:3000/amp/https://www.fotocasa.es/vivienda/malaga-capital/parking-terraza-trastero-zona-comunitaria-piscina-panorama-142784244?package=amp-generator-alpha-basic&organization=schibstedspain&version=beta

Version is the uniq param dont require, and by default we will search for the latest version.

Deploy

To deploy this package you must have install globally the up package.

To deploy to staging: $up deploy to deploy to production: up deploy production

More up command in the up documentation

### AMP parser pacakges

Is regular npm packages, with two files in the root of the project.

  • queries.js
  • index.tpl

FAQs

Package last updated on 12 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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