shortcut-value-viewer
Version:
A RunKit value viewer for Shortcuts.js shortcuts.
23 lines (15 loc) • 1.08 kB
Markdown
# Shortcut Value Viewer
[](https://github.com/haykam821/Shortcut-Value-Viewer/releases/latest)
[](https://www.npmjs.com/package/shortcut-value-viewer)
[](https://travis-ci.com/haykam821/Shortcut-Value-Viewer)
A RunKit value viewer for Shortcuts.js shortcuts.
## Installation
npm install shortcut-value-viewer
## Usage
The module exports a single function. Pass a [Shortcuts.js](https://github.com/haykam821/Shortcuts.js) shortcut into the function to assign a value viewer that is viewable on [RunKit](http://npm.runkit.com/shortcut-value-viewer).
```js
const { getShortcutDetails } = require("shortcuts.js");
const shortcut = await getShortcutDetails("ccae9c09c70d4319a553415e692a8420");
const svv = require("shortcut-value-viewer");
console.log(svv(shortcut));
```