This is the reference for PopClip's JavaScript API, generated from the TypeScript definitions file, popclip.d.ts. It may include features that are in beta.
popclip global: the selected text, and the methods to act on itutil and pasteboard globalsFor tutorials and the config format, see the Developer Docs.