Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Convert hash like this:
hash = {'table of content' => [
{'Platform features' => ['Scalability', 'Fault-tolerance']},
{'Language features' => ['Functional programming', 'Extensibility and DSLs']},
{'Tooling features' => ['A growing ecosystem', 'Interactive development', 'Erlang compatible']}]
}
into html list fragment like this (by default):
<div class="toc_container">
<a href="#table_of_content">table of content</a>
<ol>
<li>
<a href="#Platform_features">Platform features</a>
<ol>
<li>
<a href="#Scalability">Scalability</a>
</li>
<li>
<a href="#Fault-tolerance">Fault-tolerance</a>
</li>
</ol>
</li>
<li>
<a href="#Language_features">Language features</a>
<ol>
<li>
<a href="#Functional_programming">Functional programming</a>
</li>
<li>
<a href="#Extensibility_and_DSLs">Extensibility and DSLs</a>
</li>
</ol>
</li>
<li>
<a href="#Tooling_features">Tooling features</a>
<ol>
<li>
<a href="#A_growing_ecosystem">A growing ecosystem</a>
</li>
<li>
<a href="#Interactive_development">Interactive development</a>
</li>
<li>
<a href="#Erlang_compatible">Erlang compatible</a>
</li>
</ol>
</li>
</ol>
</div>
Add this line to your application's Gemfile:
gem 'toc_list'
And then execute:
$ bundle
Or install it yourself as:
$ gem install toc_list
TocList.new(hash).render
The gem is available as open source under the terms of the MIT License.
FAQs
Unknown package
We found that toc_list 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.