Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

finder-tag

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

finder-tag

Easily add color tags to files and folders on Mac OS X

latest
Source
npmnpm
Version
1.2.0
Version published
Maintainers
1
Created
Source

finder-tag Build Status

Add color tags to files and folders on Mac OS X

Note: this module currently only supports color tags on OS X. Support for adding/setting/getting all tags may come in the future. Pull Requests for this are welcome.

CLI

$ npm install --global finder-tag
$ finder-tag --help

  Easily add color tags to files and folders on Mac OS X

  Usage
    $ finder-tag [path] [color]

  Available Colors:
    `gray`, `green`, `purple`, `blue`, `yellow`, `red`, `orange`
    To clear all tags pass `clear` as the color

  Examples
    $ finder-tag ~/Desktop blue
    /Users/dave/Downloads is tagged `blue`
    $ finder-tag app.js yellow
    /root/site/scripts/app.js is tagged `yellow`
    $ finder-tag app.js clear
    /root/site/scripts/app.js all tags have been cleared

Using Programmatically

Install

$ npm install --save finder-tag

Usage

const finderTag = require('finder-tag');

finderTag('/some/path', 'blue').then(
  (result) => console.log(result)
  // { code: 0,
  //   command: 'xattr ...',
  //   path: '/some/path',
  //   tag: 'blue' }
);

API

finderTag(path, color)

path

Type: string

The filesystem path to apply the tag to.

color

Type: string

Available Colors:

  • 'gray'
  • 'green'
  • 'purple'
  • 'blue'
  • 'yellow'
  • 'red'
  • 'orange'
  • 'clear' - This will remove all tags

License

MIT © DaveJ

Keywords

cli-app

FAQs

Package last updated on 16 Mar 2025

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