
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
A node.js package to manipulate tags associated with files on macOS.
$ npm install osx-tag
Simple example:
var tag = require('osx-tag');
var path = 'foo.txt';
tag.getTags(path, function(err, tags) {
if (err) throw err;
console.log(tags);
tag.addTags(path, ['Important', 'Photo'], function(err) {
if (err) throw err;
});
});
See test/test.js
for usage.
path
- Path of the file/directory to retrieve associated tags.callback
- This callback function is called with two arguments
(err, tags)
where tags
is an array of tags.path
- Path of the file/directory to set tags.tags
- Array of tags to assign.callback
- This callback is called with one argument (err)
.path
- Path of the file/directory to add tags.tags
- Array of tags to add.callback
- This callback is called with one argument (err)
.path
- Path of the file/directory to remove tags.tags
- Array of tags to remove.callback
- This callback is called with one argument (err)
.FAQs
Manipulate file tags on macOS
We found that osx-tag demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.