Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
simple-boot-front
Advanced tools
Single Page Application Framworks
The reference documentation includes detailed installation instructions as well as a comprehensive getting started guide.
npm install simple-boot-front
Here is a quick teaser of a complete simple-boot-front application in typescript
index.ts
const app = new SimpleApplication(AppRouter).run().then(it => {});
index.html
<!doctype html>
<html>
<head>...</head>
<body id="app"></body>
</html>
AppRouter.ts
@Sim()
export class AppRouter extends Router {
module = App
'' = Index
'hello-world' = HelloWord
}
index.ts
@Sim()
export class Index extends Module {
template = html;
data = 'default data'
styleImports = [css]
public title = new class extends Module {
public data = '';
}()
public numbers = new class extends Module {
public datas = [1, 2, 3];
template = '<ul>{{#each datas as |data i|}}<li>{{data}}</li>{{/each}}</ul>'
}()
constructor(public v: ViewService) {
super('index')
}
test() {
console.log('test')
}
changeText($event: KeyboardEvent, view: View<Element>) {
this.title.data = view.value;
}
changeData() {
this.numbers.datas = [Math.floor(RandomUtils.random(1, 400)), Math.floor(RandomUtils.random(1, 400)), Math.floor(RandomUtils.random(1, 400))];
}
}
index.html (handlebars)
<h1>index</h1>
<ul>
<li><a href="/#hello-world">hello</a></li>
</ul>
<div>
<div>
{{{title}}}
</div>
<div>
title: <input type="text" module-event-keyup="changeText">
</div>
</div>
<br>
<img width="100" src="../../../assets/img.jpg">
<div>
{{{numbers}}}
<button class="btn btn-info" module-event-click="changeData">change</button>
</div>
<div>
<input type="text" module-value="data">
</div>
<div>
<div module-isolate="data">
{{data}}
<button class="btn btn-info" module-event-click="test">test</button>
</div>
<input type="text" module-link="data">
</div>
<button module-event-click="changeData">change</button>
<input module-event-change="changeData">
<input module-event-keyup="changeData">
<input module-event-keydown="changeData">
<input module-event-link="value">
<input module-event-value="value">
<div module-isolate="data">{{data}}</div>
<a href="#ajax" router-active-class="['active']">Ajax</a>
/*[module-selector]*/ h1 {color: burlywood;}
{{module-selector}} h1 { color: burlywood;}
FAQs
front end SPA frameworks
The npm package simple-boot-front receives a total of 9 weekly downloads. As such, simple-boot-front popularity was classified as not popular.
We found that simple-boot-front 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.