
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@blureffect/bigot
Advanced tools
--- Inspired by Mustache, this template engine seeks to add support for asynchronous operations in a simple way within context, functions, and decorators.
Inspired by Mustache, this template engine seeks to add support for asynchronous operations in a simple way within context, functions, and decorators.
import { Bigot } from "@blureffect/bigot";
const bigot = new Bigot();
const result = await bigot.compile('context', '{{ data.user.id }}', { data: { user: { id: 1 } } });
const result = await bigot.compile('context', '{{ data.user.id }}', { data: { user: { id: () => 1 } } });
const result = await bigot.compile('context', '{{ data.user.id }}', { data: { user: { id: async (ctx) => 1 } } });
const result = await bigot.compile('context', '{{ data.user.id }}', { data: { user: async (ctx) => ({ id: 1 }) } });
import { Bigot } from "@blureffect/bigot";
const bigot = new Bigot();
bigot.registerFunctions('now', () => new Date().toISOString());
bigot.registerFunctions('sum', (arg1: number, arg2: number) => arg1 + arg2);
const result = await bigot.compile('function_now', '{{#now}}', {});
const result = await bigot.compile('function_sum', '{{#sum 1 arg2}}', { arg2: 2 });
import { Bigot } from "@blureffect/bigot";
const bigot = new Bigot();
bigot.registerDecorator('for', async (list: number[], { render }: { render: Function }) => {
return Promise.all(list.map(async (item, i) => render({ index: i, value: item }))).then((items) => {
return items.join('')
})
});
const result = await bigot.compile('list', getTemplate('list'), { list: ['a', 'b', 'c'] });
template/list
list
{{@for list}}
{{index}}: {{value}}
{{@end}}
The compile
function receives a key, the template and the context. The key will be used to store the template once it has been analyzed and to make it faster in its next execution.
MIT
FAQs
--- Inspired by Mustache, this template engine seeks to add support for asynchronous operations in a simple way within context, functions, and decorators.
We found that @blureffect/bigot demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.