New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

snippeteer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

snippeteer

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

snippeteer

code snippet extractor & runner for Jekyll blog posts. test your examples with almost no effort!

$ cat post.markdown
herp derp blog post

{% highlight c %}
int herp;
{% endhighlight %}

{% highlight python %}
puts('derpity')
{% endhighlight %}

{% highlight c %}
double derp = herp;
{% endhighlight %}

$ snippeteer snip post.markdown
wrote post.markdown.c
wrote post.markdown.py
$ cat post.markdown.c
int herp;
double derp = herp;

snippeteer also knows how to run code in some languages directly:

$ snippeteer run post.markdown
derpity

extending

snippeteer can be extended to recognize new languages:

$ cat snip_ext.rb
class Snippeteer::Lang
  register "trendy", ".tr", "runtrendy"
end
$ snippeteer --load snip_ext.rb run trendy-lang-takes-hacker-news-by-storm.markdown

FAQs

Package last updated on 05 Dec 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc