dills122 / Snips

Handy dandy code snippet manager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Snips

CodeFactor Build Status

The code snippet manager at the execution of a command.

Getting Started

Install

npm install -g {workingDir}\Snips

Don't Need to do this anymore, check commands list for setup

Navigate to the location your global npm packages are installed and find Snips here you can setup your config file here.

if you don't know where your npm global packages are installed run this command npm list -g

Config Schema

{
    "user-settings": {
        "username": "username",
        "cloud": true
    }
}

Commands

  • add - add <name> [language] [version] adds a new snippet to your collection
    • language - optional parameter that allows you to have multiple snippets with the same name, but different languages
    • version - optional parameter that currently is only for personal tracking, improved capabilities to come
  • fetch - fetch <name> [language] fetches a snippet and adds it to your clipboard
    • language - optional parameter to fetch a snippet by language, if not used the results will return the first snippet of the given name
  • setup - setup launches an editor for you to place your config json into, which will setup app environment variables and user info.
    • print - optional flag that will print out your current config settings to console, handy since you have to write the whole config on edits (whoops).

Storage Options

Local storage is provided by NeDB a NoSql local database. NeDB

Cloud storage is done through Firebase's Firestore. Firebase

Built With

About

Handy dandy code snippet manager


Languages

Language:JavaScript 100.0%