
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.
A node module aimed to ease the creation of directories and templates inside Yeoman.
This is a node module which ease the process for a developer to create the directories and templates needed for a Yeoman Generator. This module enables you to create a hierarchical structure of Directories
and Templates (Plates
).
npm install --save yofz
Once installed require it. This will create a new instance of Yofz
var Yofz = require('Yofz')
A Yofz
instance will require two things: A root directory and a reference to the Yeoman generator being used. This can either be done when requiring the module:
module.exports = generator.Base.extend( {
initializing: function() {
require('Yofz')(rootDir, this)
}
});
Or by using the .setGenerator(..)
and .setRoot(..)
methods:
var Yofz = require('Yofz')
Yofz.setGenerator(this)
Yofz.setRoot(rootDir)
var dir = Yofz.Directory(name[, opts])
No. | Type | Description |
---|---|---|
1 | String | The name of the directory. |
2 | JSON | Configuration. |
Inside the Configuration
object one can enter the following:
No. | Name | Type | Description |
---|---|---|---|
1 | children | Array or Asset | Child or children assets. |
2 | write | Boolean | True if the template file should be written, false otherwise. |
var index = Yofz.Plate(name[,opts])
No. | Type | Description |
---|---|---|
1 | String | The name of the template. |
2 | JSON | Configuration. |
Inside the Configuration
object one can enter the following:
No. | Name | Type | Description |
---|---|---|---|
1 | context | JSON | Template context object. |
2 | write | Boolean | True if the template file should be written, false otherwise. |
var root = Yofz.Directory('root')
var dist = Yofz.Directory('dist')
var index = Yofz.Plate('index.js', { 'context': {'title': 'Yofz'}
, 'write': true
})
dist.contains(index)
root.contains(root)
Yofz.build()
FAQs
A node module aimed to ease the creation of directories and templates inside Yeoman.
We found that yofz 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
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.