ScPL is a programming language that generates Shortcuts , allowing you to write long complex shortcuts in text instead of dragging and dropping blocks. ScPL lets you work with large shortcuts easily by letting you copy and paste actions, view long shortcu
npm install shortcuts3types  
---
ScPL is a programming language for writing iOS Shortcuts in text.
npm install --save scpl or yarn add scpl
``typescript`
const {parse, inverse} = require("scpl");
const {shortcutjson, shortcutplist} = parse("text 'hello scpl'", {make: ["shortcutjson", "shortcutplist"]});
// shortcutjson is a json object containing the shortcut file.
// shortcutplist is a buffer containing the shortcut file bplist.
const inverted = inverse(shortcutplist);
// text "hello scpl"
``
git clone https://github.com/pfgithub/scpl.git
cd scpl
yarn install
The ScPL repository does not have any tools for converting ScPL code to .shortcut files. That can be found in the scpl-editor or the scpl-cli projects.
``
yarn test
ScPL tests using Jest and automatically generates coverage reports. You can use the coverage report lcov file in coverage/lcov.info to set your editor to show test coverage.
```
yarn prepublishOnly
prepublishOnly will automatically format your code using prettier and make sure tests pass.