Socket
Socket
Sign inDemoInstall

@ampproject/bento-compiler

Package Overview
Dependencies
1
Maintainers
16
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ampproject/bento-compiler

Server-render amp components


Version published
Weekly downloads
183
increased by42.97%
Maintainers
16
Created
Weekly downloads
 

Readme

Source

Bento Compiler

Server-render AMP Components with worker-dom.

Install

$ npm install --save @ampproject/bento-compiler

Usage

Visit the test cases for more info.

import {renderAst} from '@ampproject/bento-compiler';

function ampLayoutBuildDom(element) {
  element.setAttribute('i-amphtml-ssr', '');
}

const ast = h('html', {}, [h('body', {}, [h('amp-layout'))])]);
const rendered = renderAst(ast, {'amp-layout': ampLayoutBuildDom});

Analysis

See the analysis for details on how we measured expected performance improvement.

FAQs

Last updated on 11 Feb 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc