
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@brainly/sketchapp-json-plugin
Advanced tools
Fork of sketchapp-json-plugin - Utilities for working with the Sketch JSON internal formats.
Provides utilities for basing your plugins on the JSON format instead of learning all of the sketch private API objects.
This is indended to be used within the Sketch plugin environment; to generate sketch files entirely in node.js, you need a different library.
There are 2 main APIs:
// Converts an object, eg from context.selection into a JSON string representation
toSJSON(sketchObject);
// Takes a Sketch JSON tree and turns it into a native object. May throw on invalid data
fromSJSON(json);
Additionally, if you would like to create layers from a dictionary, you want this:
// Pass in a javascript object literal
const obj: SJTextLayer = {
"_class": "text",
"do_objectID": generateID(),
"frame": {
"_class": "rect",
"constrainProportions": false,
"height": 17,
"width": 117,
"x": 146,
"y": 253
},
"isVisible": true,
"name": "My hot hot ABCD",
...
};
fromSJSONObject(obj);
If you want to verify your version of Sketch is compatible (v43+):
import JSONPlugin from 'sketchapp-json-plugin';
if (JSONPlugin.appVersionSupported()) {
const layer = SJSON.fromSJSON(myJSON);
...
document.pages[0].addLayers([layer]);
} else {
// Use old code path
}
FAQs
Fork of sketchapp-json-plugin - Utilities for working with the Sketch JSON internal formats.
The npm package @brainly/sketchapp-json-plugin receives a total of 1,472 weekly downloads. As such, @brainly/sketchapp-json-plugin popularity was classified as popular.
We found that @brainly/sketchapp-json-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 12 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.