All Projects → SheetJS → pb

SheetJS / pb

Licence: other
📋 Access HTML and other pasteboards from JS and command line

Programming Languages

javascript
184084 projects - #8 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to pb

CLIp
CLIp is a clipboard manager for a command line interface written in 100% standard C only. Pipe to it to copy, pipe from it to paste.
Stars: ✭ 12 (-61.29%)
Mutual labels:  clipboard, copy-paste
CopyPasteJS
This a small JS library to execute clipboard functions in a fast and easy way.
Stars: ✭ 20 (-35.48%)
Mutual labels:  clipboard, copy-paste
nativescript-clipboard
📋 NativeScript plugin to copy stuff to the device clipboard, and read from it again
Stars: ✭ 40 (+29.03%)
Mutual labels:  clipboard, pasteboard
Jsonify
♨️A delightful JSON parsing framework.
Stars: ✭ 42 (+35.48%)
Mutual labels:  osx
homebrew-adobe
@Homebrew tap for @adobe apps and plugins.
Stars: ✭ 24 (-22.58%)
Mutual labels:  osx
clipboard-win
Rust win clipboard utilities
Stars: ✭ 25 (-19.35%)
Mutual labels:  clipboard
BitStream
A rudimentary Electron application that utilises WebTorrent to stream and download a torrent simultaneously
Stars: ✭ 15 (-51.61%)
Mutual labels:  osx
icons-flat-osx
Free Flat icons For OSX
Stars: ✭ 371 (+1096.77%)
Mutual labels:  osx
Xake
Another MAKE utility implementation on F#, fully declarative with no-brain parallelism, inspired by Shake
Stars: ✭ 24 (-22.58%)
Mutual labels:  osx
meanOs
Mean Operating System - The first decentralized, artificially intelligent, MEAN.js stack, operating system. Mean OS is the only operating system hosted anonymous using a P2P network and a suite of non-standard in-browser delivery mechanisms. Mean OS proudly supports Brave and Tor, be free!
Stars: ✭ 62 (+100%)
Mutual labels:  osx
LIFX-Menu
OSX menu bar app to control LIFX bulbs
Stars: ✭ 24 (-22.58%)
Mutual labels:  osx
Mac-OS-Setup-Applications
👾 All I need to setup a new Mac and the applications I use everyday as a Web Developper
Stars: ✭ 96 (+209.68%)
Mutual labels:  osx
Fab
🛍️ A Floating Action Button for macOS. Inspired by Material Design, and written in Swift.
Stars: ✭ 24 (-22.58%)
Mutual labels:  osx
x11-clipboard
x11 clipboard support for Rust
Stars: ✭ 28 (-9.68%)
Mutual labels:  clipboard
conductor
A lightweight OS X window manager for hackers
Stars: ✭ 24 (-22.58%)
Mutual labels:  osx
SpaceId
macOS space indicator
Stars: ✭ 116 (+274.19%)
Mutual labels:  osx
ZetaHtmlEditControl
A small wrapper class around the Windows Forms 2.0 WebBrowser control.
Stars: ✭ 72 (+132.26%)
Mutual labels:  clipboard
macos-receiver
A MacOS TabBar (StatusBar) application that securely receives one-time passwords (OTPs) that you tapped in Raivo for iOS.
Stars: ✭ 44 (+41.94%)
Mutual labels:  clipboard
packages
Cloud Posse DevOps distribution of linux packages for native apps, binaries, alpine packages, debian packages, and redhat packages.
Stars: ✭ 107 (+245.16%)
Mutual labels:  osx
mac-a-mal-cuckoo
The current repository contains all the scripts needed to complement kernel-mode mac-a-mal malicious activity hooking on macOS to Cuckoo sandbox.
Stars: ✭ 40 (+29.03%)
Mutual labels:  osx

pb

Improved pbcopy/pbpaste for OSX

The standard pbcopy and pbpaste utilities can manipulate the plaintext clipboard but have no easy way of accessing the HTML pasteboard. This module and CLI tool provide a more convenient way to access the pasteboard from node.

Installation

With npm:

$ npm install -g pb

Depending on your system configuration, you may need to run as root:

$ sudo npm install -g pb

Command-Line Tool Usage

To get data from a specific pasteboard:

$ pb [type]
$ pb -m <type>

To set a specific pasteboard, pipe data into pb:

$ get_data | pb -s [type]

To list available pasteboards:

$ pb -l

For example, to grab the contents of the HTML pasteboard and put it on the plaintext pasteboard:

$ pb -m html | pb -s

Library Usage

From node, pb exposes:

  • get(type): get pasteboard data from specified pasteboard
  • set(type, data): set pasteboard data (overwrites other pasteboards)
  • available(): enumerate populated pasteboards
  • gettypes(): enumerate available pasteboards

This example gets the pasteboard HTML data and copies to plaintext pasteboard:

var pb = require('pb');
var HTMLOutput = pb.get('html');
pb.set('text', HTMLOutput);

Supported Pasteboards

type description
NSStringPboardType plaintext
NSHTMLPboardType HTML
NSRTFPboardType RTF

License

Please consult the attached LICENSE file for details. All rights not explicitly granted by the Apache 2.0 license are reserved by the Original Author.

Analytics

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].