Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mdrb

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdrb

  • 0.0.2
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

md.rb

Create and manage multiple markdown documents easily.

Some of the key features are:

  1. Having a simple syntax and api
  2. Generate, read, update and delete multiple markdown
  3. Get json from markdown

Install

gem install mdrb
require 'mdrb'

usage

Create markdown

MD.create("first", "# Hello") #first.md
MD.create("first document", "# Hello") #first-document.md

Create multiple markdown

MD.create_many(["first","second"], ["# first","# second"]) #first.md second.md

MD.create_many(["first document","second document"], ["# first","# second"]) #first-document.md second.md

Get json from markdown

MD.create("first", "# first")
puts json = MD.to_json("first")

Update markdown

MD.update(path, content)
MD.update_on(which_line, path, content)
MD.update_many()

Delete markdown

MD.create_many(["first","second"], ["# first", "# second"])
MD.delete("first")
MD.delete_many(["first", "second"])

Read markdown

MD.read()
MD.read_many()

Testing

rspec

license

MIT | ytbryan@hey.com

FAQs

Package last updated on 01 Dec 2020

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