Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
MarkdownTree is a Ruby gem that generates a directory structure in Markdown format. It is highly configurable, allowing you to exclude specific folders, choose the root directory, and specify the output file name.
You can install the gem and add it to your application's Gemfile by executing:
bundle add markdown_tree
If bundler is not being used to manage dependencies, install the gem by executing:
gem install markdown_tree
To generate the directory structure in Markdown format from the current directory, simply call the generate_tree
method:
require 'markdown_tree'
MarkdownTree.generate_tree
You can configure which folders to exclude from the generated structure:
MarkdownTree.configure do |config|
config.exclude_list = ['node_modules', '.git', 'tmp']
end
MarkdownTree.generate_tree
You can also specify the directory from which you want to generate the structure:
MarkdownTree.configure do |config|
config.root_directory = '/path/to/your/directory'
end
MarkdownTree.generate_tree
You can set the name of the file where the directory structure will be saved:
MarkdownTree.configure do |config|
config.output_file = 'custom_directory_structure.md'
end
MarkdownTree.generate_tree
If you're using Rails, you can configure all these options in an initializer:
# config/initializers/markdown_tree.rb
MarkdownTree.configure do |config|
config.exclude_list = ['node_modules', '.git', 'tmp'] # Directories to exclude
config.root_directory = Rails.root.join('app').to_s # Root directory to start generating structure
config.output_file = 'custom_directory_structure.md' # Output file name
end
Contribution directions go here. You can fork the repository, create a new branch, and submit a pull request for review. Please make sure to write tests for your contributions and follow the coding standards set in the project.
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that markdown_tree demonstrated a healthy version release cadence and project activity because the last version was released less than 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
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.