2.2.3 • Published 4 years ago

launchbar-node v2.2.3

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

launchbar-node

A helper library for making LaunchBar actions.

Note: A heavy work in progress, things change and break incessantly.

Features

  • Aims to offer NodeJS bindings for the entire LaunchBar JavaScript API.
  • Tries to be as syntactically similar as reasonably possible to LaunchBar's own JS API.
  • Easy caching.
  • Easy action config handling.

Table of Contents

hide

hides LaunchBar.

remainActive

keeps LaunchBar active.

hasKeyboardFocus

Returns boolean true if LaunchBar has keyboard focus, otherwise false.

setClipboardString

sets the clipboard's contents.

Parameters

  • text String the text to copy to the clipboard.

clearClipboard

Clears the clipboard's contents.

paste

Paste text in the frontmost application.

Parameters

  • text
  • null-null String text the text to paste.

performService

Perform a macOS service (as seen System Preferences > Keyboard > Shortcuts).

Parameters

  • service string the service to perform.
  • argv string? optional arguments to the service.

displayNotification

Displays a message in Notification Center.

Parameters

  • options Object?
    • options.text string? the notification's body.
    • options.title string? the notification's title.
    • options.subtitle string? the notification's subtitle.
    • options.callbackUrl string? URL opened if the user clicks on the notification.
    • options.afterDelay number? Delay in seconds before the notification is shown.

textAction

Boilerplate function for text-processing actions.

Parameters

  • textArguments
  • textProcessingFunction function a function to run over each line. Should accept and return single argument -- a line of text.
  • joiner string the separator to join back the lines into a string. (optional, default "\n")
  • text (String | Array) a single string or an array of strings.

To Do

  • Loud error handling with output directly LaunchBar.
  • Tests.
  • Documentation.

Credits

2.2.3

4 years ago

2.2.1

4 years ago

2.2.2

4 years ago

2.2.0

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago