Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

alfred-outline

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

alfred-outline - npm Package Compare versions

Comparing version 1.0.0-1 to 1.0.0

10

index.js
const path = require('path');
const alfy = require('alfy');
const results = await alfy.fetch(`https://www.getoutline.com/api/documents.search`, {
const protocolAndHost = `https://${process.env.domain || "app.getoutline.com"}`;
const results = await alfy.fetch(`${protocolAndHost}/api/documents.search`, {
method: "POST",

@@ -18,3 +20,3 @@ headers: {

subtitle: result.context.replace(/\<\/?b\>/g, ''),
arg: `https://${process.env.subdomain || "www"}.getoutline.com${result.document.url}`,
arg: `${protocolAndHost}${result.document.url}`,
icon: {

@@ -28,6 +30,6 @@ path: path.join(__dirname, "document.png")

title: "No results - go to Outline homepage",
arg: `https://${process.env.subdomain || "www"}.getoutline.com/home`
arg: `${protocolAndHost}/home`
}];
}
alfy.output(items);
alfy.output(items);

2

package.json
{
"name": "alfred-outline",
"version": "1.0.0-1",
"version": "1.0.0",
"description": "Search your team knowledgebase from the comfort of Alfred",

@@ -5,0 +5,0 @@ "author": {

# alfred-outline
An Alfred workflow to search your team Outline from the comfort of your desktop.
An Alfred workflow to search your team Outline from the comfort of your desktop.

@@ -23,4 +23,4 @@ Simply type your keyword into Alfred (default: ou) to see instant search results from your Outline knowledge base. Selecting a search result takes you directly to that Outline document in your default web browser.

- `apiToken`: Grab a personal API token from the settings page in Outline: https://www.getoutline.com/settings/tokens
- `subdomain`: This should be your just your teams Outline subdomain, whatever is listed between the protocol and getoutline.com in your browsers address bar: https://\<SUBDOMAIN\>.getoutline.com
- `apiToken`: Grab a personal API token from the settings page in Outline: `https://www.getoutline.com/settings/tokens` or `https://<DOMAIN>/settings/tokens`
- `domain`: This should be your just your teams Outline domain (`<TEAM-SUBDOMAIN>.getoutline.com`) for getoutline.com managed instances and the fully qualified domain without protocol (eg `wiki.mycompany.com`) for self-hosted instances.

@@ -27,0 +27,0 @@ ## Usage

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc