
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
A UI library for JXA
NOTE: This is a new project and under heavy development, just figuring things out right now.
The code required to build UIs using Cocoa can be quite verbose. Startstuff provides a familiar, chainable API for creating those UIs.
npm install --save starstuff
import starstuff from 'starstuff';
// Create a new NSWindow. `$mainWindow` is a Starstuff object.
// Startstuff does not prevent access to original Cocoa
// objects, they are stored in the `el` property.
// ex; $mainWindow.el
var $mainWindow = starstuff.window({
title: 'Choose an Image Window',
rect: [0, 0, 600, 85]
}).delegate(appDelegate);
$mainWindow.append(starstuff.fieldLabel({
id: 'fileFieldLabel',
value: 'Image: (jpg, png, or gif):',
rect: [25, ($mainWindow.height() - 40), 200, 24]
}))
.append(starstuff.textField({
id: 'fileField',
editable: false,
rect: [25, ($mainWindow.height() - 60), 350, 24]
}))
.append(starstuff.button({
id: 'chooseButton',
title: 'Choose an image...',
rect: [375, ($mainWindow.height() - 62), 150, 25],
target: appDelegate,
action: 'click'
}));
npm install
To compile the source–written using es6–with Babel run:
npm run build
To recompile as you make changes run:
npm run watch
FAQs
A UI library for JXA
We found that starstuff demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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 Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
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.