Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
elements-lite
Advanced tools
@version 0.3.4
@date 2014-09-14
@stability 1 - Experimental
Syntax follows CSS Selectors where possible.
<script src=elements-lite.js></script>
should place inside body.
El("div", "test").to(document.body)
//<div>test</div>
El("a#link[href='/home']", "Home").to(document.body)
//<a id="link" href="/home">Home</a>
El("a", {id:"link", href:"/home"}).append("Home").to(document.body)
//<a id="link" href="/home">Home</a>
El(".custom", "test").to(document.body)
//<div class="custom">test</div>
It is a template engine inspired by Haml and implemented with JavaScript for browser.
By default, text at the start of a line (or after only white space) represents an html tag. Indented tags are nested, creating the tree like structure of html.
ul
li Item A
li Item B
becomes
<ul>
<li>Item A</li>
<li>Item B</li>
</ul>
From CSS Class selectors, ID selectors, Pseudo-classes selectors and Attribute selectors are supported.
a#123.link.bold[href="#A"][title=go] link
button:disabled
becomes
<a id="123" class="link bold" href="#A" title="go">link</a>
<button disabled="disabled"></button>
To save space you can use an inline syntax for nested tags.
a>i text
becomes
<a><i>text</i></a>
ul.list
:template my-row
li.my-row > b row
my-row
my-row
becomes
<ul class="list">
<li class="my-row"><b>row</b></li>
<li class="my-row"><b>row</b></li>
</ul>
Copyright (c) 2012, 2014 Lauri Rooden <lauri@rooden.ee>
The MIT License
FAQs
This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
The npm package elements-lite receives a total of 2 weekly downloads. As such, elements-lite popularity was classified as not popular.
We found that elements-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.