Sha256: d24200651d96b4dae10df530131e6f96820bca353c5fde6336fd70418ebc1f7d

Contents?: true

Size: 922 Bytes

Versions: 3

Compression:

Stored size: 922 Bytes

Contents

# Joplin


## usage

Creating a note
```ruby
Joplin::token = "your joplintoken here copied from the webclippper settings"

begin
  note = Joplin::Notes.new
  note.title = "a new note"
  note.body = "markdown content"
  note.save!
rescue
  puts "Joplin not running?"
end
```

updating a note
```ruby
  note = Joplin::Notes.new "6e3811c7a73148a" # note id can be found in the information of any note
  note.title = "a new note title"
  note.save!
```

### A note on the token

If you've got joplin installed, you can do:

``` ruby
require "joplin/token"
token = Joplin::Token.get
```

to get the token programatically. It reads from the sqlite database located in `~/.config/joplin-desktop`


## CLI

### joplin nb2n --token <yourtoken> 'notebook name'

Will take a notebook and concatenate all notes into one for easy export to PDF

The token argument is optional and if you have it installed locally it will find the token

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
joplin-0.5.0 README.md
joplin-0.4.0 README.md
joplin-0.3.0 README.md