
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Usage: md-ruby-eval [options] --auto
md-ruby-eval [options] INPUT_FILE OUTPUT_FILE
md-ruby-eval --help
Evaluates Ruby examples in MD files.
It looks for code blocks starting with '```ruby'. The blocks are evaluated in same order as they appear in the markdown file. Each top_level parseable piece of code is evaluated and the value is added as a comment, e.g.:
# Title
First evaluated block:
```ruby
a = 1 + 2
def a; :a; end #
[a,
:b]
```
Continuing in next block
```ruby
a
```
becomes
# Title
First evaluated block:
```ruby
a = 1 + 2 # => 3
def a; :a; end
[a,
:b] # => [:a,:b]
```
Continuing in next block
```ruby
a # => 3
```
A parseable piece of code ended with '#' will be evaluated but its result is not added to the output as a comment, which is useful for method and class definitions.
--auto
cd doc_dir
go to directory with documentation
ls
list the files
a.in.md
a.init.rb
b.in.rb
c.md
md-ruby-eval --auto
call the tool
Creates files a.out.md
and b.out.rb
evaluating each in isolated environments, before
a.out.md
is evaluated a.init.md
is required to setup its environment. c.md
is ignored
since it does not have in
marker.
FAQs
Unknown package
We found that md-ruby-eval 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
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.