
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
Generate PDF, ePub, and Mobi eBooks
Add this line to your application's Gemfile:
gem 'ebookie'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ebookie
Create a new document:
document = Ebookie::Document.new "My eBook" # Title
Configure it:
document.configure do |config|
config.cover = './path/to/cover.png' # Cover image
config.destination = './ebook/' # Ouput for ePub, Mobi, PDF
config.subject = "Introductions"
config.source = "http://google.com"
end
Add a chapter:
# You can pass a string for the content
document.chapter 'Getting Started', "All about how to get started"
# You can also give it an html file to read
document.chapter 'Getting Started', Pathname.new("path/to/myfile.html")
Add an image:
# Relative or absolute path for image to be copied
document.image './path/to/image.png'
# Chapters can reference images with html:
document.chapter "My Cool Image", "<img src='image.png' alt='image' />"
Render the document:
# ePub
document.render_epub
# Mobi
document.render_mobi
# PDF
document.render_pdf
$ ebookie install ./path/to/templatees
Then configure the document:
document.config.template = './path/to/templates'
git checkout -b my-new-feature)git commit -am 'Add some feature')git push origin my-new-feature)FAQs
Unknown package
We found that ebookie 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.