
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
uilang is a dead simple programming language for web designers. With uilang, you write your code just like plain English, straight into your HTML using a <code>
element. uilang's logic relies on manipulating classes on HTML elements and using these classes in CSS to show, hide, animate and transform elements when a click occurs. This simple logic lets designers create most of the typical user interface behaviours: tabs, popovers, overlays, sliding menus, etc.
Download the node module with npm:
npm i --save uilang
You can use browserify to include the 1kb-sized javascript:
var uilang = require('uilang');
or using a copy task and insert it to your html:
<script src="path/to/uilang.js"></script>
You're now ready to write some uilang. Your code should be inserted in a <code>
element, preferably at the very end of your page (just before </body>
). The syntax looks like this:
<code>
clicking on ".hide" adds class "hidden" on "div"
</code>
This is pretty much the only syntax you'll have to learn. This code is straightforward: when you click on an element with a hide
class, a hidden
class will be added to every div
.
Now, this hidden
class can be used in your CSS to actually hide these div
s with, for example, a simple fade-out effect:
div {
transition: opacity .5s;
}
div.hidden {
opacity: 0;
}
Let's deconstruct the syntax from our previous example:
<code>
clicking on ".hide"(1) adds(2) class "hidden"(3) on "div"(4)
</code>
adds
, removes
or toggles
.target
keyword (which selects the clicked element).You can add as many instructions as you want into your <code>
element:
<code>
clicking on ".hide" adds class "hidden" on "div"
clicking on "nav .tabs" adds class "active" on "target"
clicking on "img:first-child" toggles class "big" on "target"
</code>
Don't worry about having other <code>
elements on your page, uilang will only execute the one containing your uilang code.
Please note that uilang only supports click events. Hover effects can usually be achieved in CSS and other events are simply out of the scope of this language. By keeping its feature set light and focused, uilang aims to lower the barriers to entry into programming.
Keep in mind uilang is basically just HTML, which means that you're already familiar with the syntax for comments:
<code>
<!-- I'm a comment. -->
clicking on ".hide" adds class "hidden" on "div"
<!-- I'm also a comment! -->
clicking on "nav .tabs" adds class "active" on "target"
</code>
You'll find more examples on uilang.com.
FAQs
A minimal, UI-focused programming language for web designers.
The npm package uilang receives a total of 1 weekly downloads. As such, uilang popularity was classified as not popular.
We found that uilang 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.