
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@allnulled/ui-script
Advanced tools
UI-Script is a shorter & simpler substitute for HTML syntax.
You have a free tester online version here:
The NPM package is located here:
Before starting, import the package via npm:
npm install --save @allnulled/ui-script
First, you import the CSS file for general and per-component styling:
<link rel="stylesheet" type="text/css" href="./node_modules/@allnulled/ui-script/docs/lib/ui-script/ui-script.css" />
Second, you import the JS file for general and per-component logic:
<script src="./node_modules/@allnulled/ui-script/docs/lib/ui-script/ui-script.js"></script>
Once you have done this, 2 variables are added into the global scope window:
uiscript_api anduiscript_components.However, you can use import statement too to retrieve the uiscript_api.
The uiscript_api comes packed like this:
window.uiscript_api = {
ast: { parser: ast_parser },
parser,
components: window.uiscript_components
};
The uiscript_api.parser.parse(uiscript) function returns HTML syntax from uiscript syntax.
The uiscript_api.ast.parser.parse(uiscript) function returns an object syntax from uiscript syntax.
The uiscript_api.components holds the uiscript_components object.
The uiscript_components holds all the ui-script (Vue2) components of the library, this is:
xbreadcrumbxbuttonxformxformfieldxjumbotronxlabelxlayoutxlayoutnopaddingbottomxlayoutnopaddingtopxlinkxpagexpanelxparagraphxsubtitlextablextablecellxtablerowxtesterxtitlexwindowxwindowbodyxwindowfooterxwindowfooteritemxwindowtitleThe following example demonstrates how to create a new Vue.js component from UI-Scripting markup.
<script>
Vue.component("CustomComponent", {
template: uiscript_api.parser.parse(`
!div {
!xwindow {
!xwindowtitle {{ TĂtulo de la ventana }}
!xwindowbody {
!xtitle {{ TĂtulo de página }}
!xsubtitle {{ Subttulo de página }}
!xbreadcrumb {{ Ruta » a » subdireccion }}
!xpanel {
!xform {
!xformfield {{ Usuario: }}
!xformfield {{ Contraseña: }}
}
}
!xlayoutnopaddingtop [style="text-align: right;"] {
!xbutton {{ Entrar }}
}
}
!xwindowfooter {
!xwindowfooteritem {{ Pie de ventana }}
}
}
}
`)
});
</script>
uiscriptTo parse uiscript code into html you can simply:
uiscript file1.uis file2.uis file3.uis
This will output the equivalent html files beside each.
xcomponentsTo create a setup of files (lib folder) you can simply:
xcomponents docs
This will create a lib folder inside the docs folder with:
FAQs
UI-Script is a shorter & simpler substitute for HTML syntax
The npm package @allnulled/ui-script receives a total of 12 weekly downloads. As such, @allnulled/ui-script popularity was classified as not popular.
We found that @allnulled/ui-script 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.