New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@moonjot/moon-supernotes-plugin

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@moonjot/moon-supernotes-plugin

Moon supernotes plugin for Moon Jot

latest
Source
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

Supernotes Plugin for Moon Jot

NPM version NPM downloads

Send Note from your OS to Supernotes with your current context. Make it faster and even more super to take note into Supernotes

Get Supernotes token

Go to settings

Go to Api and integration

Go to key

Generate you key and past it into Settings

Automatic tags

You can auto-generate tags by adding the path to the context object property separated by ','. Refer to the provided documentation that explains 'context object' such as 'source.type, source.location'. Documentation.

Template

{{content}}

{{IF source.url}}
# {{IF source.name}}{{source.name}}{{END_IF source.name}}
{{IF source.url}}{{source.url}}{{END_IF source.url}}
{{IF source.description}}{{source.description}}{{END_IF source.description}}
{{IF source.timestamp}}
## Timestamps
- [{{source.timestamp.0.timestamp}}]({{source.timestamp.0.url}})
{{END_IF source.timestamp}}
{{END_IF source.url}}

{{IF people.0.name}}
# {{IF people.0.name}}{{people.0.name}}{{END_IF people.0.name}}
{{IF people.0.job}}{{people.0.job}}{{END_IF people.0.job}}
{{IF people.0.email}}[{{people.0.email}}](mailto:{{people.0.email}}){{END_IF people.0.email}}
{{IF people.0.about}}{{people.0.about}}{{END_IF people.0.about}}
{{IF people.0.linkedin}}linkedin : [{{people.0.linkedin}}]({{END_IF people.0.linkedin}}){{END_IF people.0.linkedin}}
{{IF people.0.twitter}}twitter : [{{people.0.twitter}}]({{END_IF people.0.twitter}}){{END_IF people.0.twitter}}
{{IF people.0.tiktok}}tiktok : [{{people.0.tiktok}}]({{END_IF people.0.tiktok}}){{END_IF people.0.tiktok}}
{{IF people.0.instagram}}instagram : [{{people.0.instagram}}]({{END_IF people.0.instagram}}){{END_IF people.0.instagram}}
{{IF people.0.substack}}substack : [{{people.0.substack}}]({{END_IF people.0.substack}}){{END_IF people.0.substack}}
{{IF people.0.github}}github : [{{people.0.github}}]({{END_IF people.0.github}}){{END_IF people.0.github}}
{{IF people.0.mastodon}}mastodon : [{{people.0.mastodon}}]({{END_IF people.0.mastodon}}){{END_IF people.0.mastodon}}
{{IF people.0.youtube}}youtube : [{{people.0.youtube}}]({{END_IF people.0.youtube}}){{END_IF people.0.youtube}}
{{IF people.0.website}}website : [{{people.0.website}}]({{END_IF people.0.website}}){{END_IF people.0.website}}
{{END_IF people.0}}

Condition

Is defined

You can insert content based on a condition. Currently, the condition only checks if something exists or does not exist.

{{IF ...}}Write something{{END_IF ...}}

// Example:
{{IF author}}Author: {{author}}{{END_IF author}}

You can also do some condition with equality

=== undefined

{{IF author === undefined}}content{{END_IF author}}

=== some text

{{IF content === some text}}content{{END_IF content}}

!== some text

{{IF content !== some text}}content{{END_IF content}}{{IF content !== some text hey }}content different{{END_IF content}}

.includes(something)

{{IF content.includes(some t)}}content{{END_IF content}}{{IF content.includes(some text hey) }}content different{{END_IF content}}

.startsWith(something)

{{IF SOURCE.TEXT.startsWith(- [ ])}}content{{END_IF SOURCE.TEXT}}

Date

You can format the date as YYYY-MM-DD HH:mm:ss.

{{DATE}}YYYY-MM-DD{{END_DATE}}
{{DATE}}HH:mm{{END_DATE}}

Installation

yarn

Build before publishing

yarn build

For dev mode run

yarn watch

Publishing

First remove current git origin

git remote remove origin

Add you repo origin and change also credential iin package.json

Then

yarn pub

Keywords

moon

FAQs

Package last updated on 17 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts