ssb-splitter

Version, currently master branch1 version
  • master branchlatestFeb 10, 2019

github.com/masukomi/ssb-splitter

splits long posts into multiple smaller posts for posting to SSB clients

0 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  ssb-splitter:
    github: masukomi/ssb-splitter
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.23.1
License
MIT
Author
masukomi
Target
  • splitter from src/ssb-splitter.cr

Dependencies

This version declares no dependencies.

README

ssb-splitter

A quick and dirty hack to compensate for max post length in Scuttlebut clients.

  • Reads in a markdown file
  • Splits it into multiple files with as many paragraphs as possible in each
  • adds a line to each post indicating which one it is and of how many. E.g. "post 2 of 12"

Example:

$ ssb-splitter path/to/my/long/post.md
path/to/my/long/post_1.md
path/to/my/long/post_2.md

Those 2 lines after the command are the paths to where it has written your new file.

Usage

ssb-splitter path/to/file

Compiling

crystal build src/ssb-splitter.cr

Contributing

Really? Well, sure. It's written in Crystal. Have fun.

  1. Fork it ( https://github.com/masukomi/ssb-splitter/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

  • masukomi masukomi - creator, maintainer