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

@jaysalvat/x-app

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jaysalvat/x-app

Smart in-place JS templating engine for micro-apps.

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Xapp

NPM version

Smart in-place JS templating engine for micro-apps. About 3kb+ GZipped

  • Virtual DOM
  • No dependencies
  • Interpolation {{ name }}
  • Interpolation with object properties {{ item.name }}
  • JS interpretation {{ 2 + 2 }}
  • Conditions as x-if="var === true"
  • Object keys loop as x-for="key in object"
  • Array values loop as x-for="value in array"
  • Loop metadata as $index, $first, $last
  • Chainable pipes to transform vars as {{ text | truncate(10, '…') | upper }}
  • Dynamic classes as x-class="{ 'red': true }"
  • Dynamic attributes as x-attr="{ 'disabled': true }"
  • Dynamic styles as x-style="{ 'display': true ? 'block': 'none' }"
  • Css vendor prefix added to style properties
  • Mixins as x-mixin and x-use
  • Recursive mixins
  • Includes as x-include="file.html"
  • Autoshow hidden dom element when rendered
  • Events
  • SVG support
  • Keyed diff

Note: Xapp makes heavy use of eval function.

NPM install

npm install --save @jaysalvat/x-app

Yarn install

yarn add @jaysalvat/x-app

Include from CDN

    <script src="http://unpkg.com/@jaysalvat/x-app"></script>

Keywords

FAQs

Package last updated on 22 Jan 2020

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