Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Version: 1.0.1
A lightweight Domain-Specific Language (DSL) for generating web components.
npm install bluscript
import { Parser, HTMLGenerator } from 'bluscript';
const code = `
LOGIN PAGE {
FIELD: username
FIELD: password
AUTH: JWT
ACTION: /login
}
`;
const parser = new Parser(code);
const ast = parser.parse();
const htmlGenerator = new HTMLGenerator();
ast.forEach(command => {
if (command.type === 'LOGIN') {
const html = htmlGenerator.generateLoginPage(command);
console.log(html);
}
});
Creates a login form with specified fields and configuration.
LOGIN PAGE {
FIELD: username
FIELD: password
AUTH: JWT
ACTION: /login
}
Parameters:
FIELD
: Input field (can be specified multiple times)AUTH
: Authentication methodACTION
: Form submission endpointGenerated HTML example:
<form action="/login" method="POST">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required>
</div>
<div class="form-group">
<label for="password">Password</label>
<input type="password" id="password" name="password" required>
</div>
<button type="submit">Login</button>
</form>
const parser = new Parser(code);
const ast = parser.parse();
const generator = new HTMLGenerator();
const html = generator.generateLoginPage(command);
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)MIT License - see the LICENSE file for details
FAQs
A domain-specific language for web development
We found that bluscript demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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.