# pb **Repository Path**: mirrors_FGRibreau/pb ## Basic Information - **Project Name**: pb - **Description**: Improved pbcopy/pbpaste - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-24 - **Last Updated**: 2026-07-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pb Improved pbcopy/pbpaste for OSX ## Installation `npm install pb` ## Usage ``` $ pb [type] $ get_data | pb -s [type] ``` For example, to grab the contents of the html pasteboard and put it on the plaintext pasteboard: ```bash $ pb html | pb -s ``` From node, `pb` exposes: - `get(type)`: get pasteboard data from specified pasteboard - `set(type, data)`: set pasteboard data (overwrites other pasteboards) ``` var pb = require('pb'); var HTMLOutput = pb.get('html'); var textOutput = pb.get(); ``` ## Supported Pasteboards - `NSStringPboardType` (plaintext) - `NSHTMLPboardType` (HTML)