{"_id":"@brainly/sketchapp-json-plugin","_rev":"31-2f1bbb4594a7528aab6fc09912e6c85c","name":"@brainly/sketchapp-json-plugin","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.3":{"name":"@brainly/sketchapp-json-plugin","version":"0.1.3","author":{"name":"coderitual"},"license":"MIT","_id":"@brainly/sketchapp-json-plugin@0.1.3","maintainers":[{"name":"coderitual","email":"skowronkow@gmail.com"},{"name":"sheppard25","email":"mscirka@gmail.com"},{"name":"kubajasiolek","email":"kubajasiolek@gmail.com"},{"name":"fasosnql","email":"nowak_przemek@yahoo.com"},{"name":"wro","email":"wro.emails@gmail.com"},{"name":"malinicz","email":"malinicz@gmail.com"},{"name":"elzbieta","email":"elzbieta.lukaszewicz@brainly.com"},{"name":"maciekbb","email":"maciek.bb@gmail.com"},{"name":"matzimowski","email":"mat.zimowski@gmail.com"},{"name":"matikrk","email":"matikrk@gmail.com"},{"name":"brainly-user","email":"services@brainly.com"},{"name":"sebastian.czoch","email":"sebastian@czoch.pl"}],"homepage":"https://github.com/brainly/sketchapp-json-plugin#readme","bugs":{"url":"https://github.com/brainly/sketchapp-json-plugin/issues"},"dist":{"shasum":"f8db1f829e32f547ad67d7ef7cd53a7faf69a5e0","tarball":"https://registry.npmjs.org/@brainly/sketchapp-json-plugin/-/sketchapp-json-plugin-0.1.3.tgz","fileCount":5,"integrity":"sha512-9Pk8rQ20sdKYO/9GcxuZma9AcQ6b5qJDcRVtciQDxHS/MWuy7BRW/dCZCUzJMxoeYgsITd8L8QiwUyn++4pzhQ==","signatures":[{"sig":"MEQCIDgZWT6Ng0GnJOPAHrZJplhSds5dolIxiCEyi8RaHJkCAiBIfs87ylk62CH+LXdIZxNQDCKU5pDJB5HI6HdDsEKNsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5756,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2Bw7CRA9TVsSAnZWagAAOf8P/0IBNAKG8WMULWMSb0se\neelQVF/Tb0p5iWW6UbB4Tga8F4P+EjLZ+V+MNoLlwh//tXSDlOszYofVCh3n\nNwHCfpbhcs1TlU7qmKomAlOcZ76KtFvShQSXj2s3v7rjwcbCUV+dwWhnZoqr\nRwNAaXV654Aqkist2xXF8/F+EAiG21DM3fryjBvqGBLhnqlaEdYXj8hHsNqF\n9bdYcVJ86mm8uIUnVAKMTfUjv71Q9rJf7litvt6Dpu/yp9ws4YsmI88eMiLH\ncWymcS0HmfYc+Pkfm96A0ScmHk1IiBS33NKtRO6eiq82NZaKI1WavUEv0k5i\nFthGHGGJ6u+fT9fOuAglc3hcfjQUmFbCk1nWHFSsubydLUrX3hQ+3Y091yxx\nM8b9PEopB7OdC3IuFveKmyssEd6JIcMocHVzUqD+fHSmoqYpnKYs2bo4H3VL\nwddxXAc7n7VpnymTSwUm+j4Vp2HU1z+efhN5AhK9hKQ0NaydZBzoRy25aYB0\nycRj6iU0NaaQO281q7eh3QHmtMVXcodpV8P+Y84a5k1pPWywXouqNKal4tG2\niwRfzxqf1MxC13n3e0CxAdVT0pMPQHWxxJN89rB6D8u6S8tKz/adRG3ucPLD\nkEk2swV4yB12he3gI12laC1e/MMMik6sPUWr2uYDvpp6y0NGTiy7LqA58H6b\n3GoU\r\n=FblV\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"b6243bed27baf262ae24dbd2ea334c5dee3af25e","scripts":{"build":"babel src/ -d lib/","watch":"npm run build -- --watch","prepack":"echo 'working around yarn bug'; yarn run prepare","prepare":"npm run build"},"_npmUser":{"name":"coderitual","email":"skowronkow@gmail.com"},"repository":{"url":"git+https://github.com/brainly/sketchapp-json-plugin.git","type":"git"},"_npmVersion":"6.14.8","description":"Fork of sketchapp-json-plugin - Utilities for working with the Sketch JSON internal formats.","directories":{},"_nodeVersion":"14.9.0","dependencies":{"invariant":"^2.2.2","sketchapp-json-flow-types":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"babel-cli":"^6.23.0","babel-preset-es2015":"^6.22.0","babel-preset-stage-3":"^6.22.0"},"_npmOperationalInternal":{"tmp":"tmp/sketchapp-json-plugin_0.1.3_1601229365054_0.0013649478878718924","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-09-27T17:56:04.786Z","modified":"2024-07-18T10:03:37.569Z","0.1.3":"2020-09-27T17:56:05.235Z"},"bugs":{"url":"https://github.com/brainly/sketchapp-json-plugin/issues"},"author":{"name":"coderitual"},"license":"MIT","homepage":"https://github.com/brainly/sketchapp-json-plugin#readme","repository":{"url":"git+https://github.com/brainly/sketchapp-json-plugin.git","type":"git"},"description":"Fork of sketchapp-json-plugin - Utilities for working with the Sketch JSON internal formats.","maintainers":[{"email":"igor@kopach.dev","name":"kopach"},{"email":"krzotki@gmail.com","name":"krzotki"},{"email":"przytrzask@gmail.com","name":"przytrzask"},{"email":"bartosz.lorek@brainly.com","name":"bartoszlorek"},{"email":"services@brainly.com","name":"brainly-user"},{"email":"sebastian@czoch.pl","name":"sebastian.czoch"},{"email":"mat.zimowski@gmail.com","name":"matzimowski"},{"email":"elzbieta.lukaszewicz@brainly.com","name":"elzbieta"},{"email":"malinicz@gmail.com","name":"malinicz"},{"email":"nowak_przemek@yahoo.com","name":"fasosnql"},{"email":"patrycja.batko@gmail.com","name":"patrycja.batko"}],"readme":"# Sketch.app JSON Plugin library\n\nProvides utilities for basing your plugins on the JSON format instead of learning all of the sketch private API objects.\n\nThis is indended to be used within the Sketch plugin environment; to generate sketch files entirely in node.js, you need a different library.\n\nThere are 2 main APIs:\n\n    // Converts an object, eg from context.selection into a JSON string representation\n    toSJSON(sketchObject);\n\n    // Takes a Sketch JSON tree and turns it into a native object. May throw on invalid data\n    fromSJSON(json);\n\n\nAdditionally, if you would like to create layers from a dictionary, you want this:\n\n    // Pass in a javascript object literal\n    const obj: SJTextLayer = {\n    \"_class\": \"text\",\n    \"do_objectID\": generateID(),\n    \"frame\": {\n      \"_class\": \"rect\",\n      \"constrainProportions\": false,\n      \"height\": 17,\n      \"width\": 117,\n      \"x\": 146,\n      \"y\": 253\n    },\n    \"isVisible\": true,\n    \"name\": \"My hot hot ABCD\",\n    ...\n\n    };\n    fromSJSONObject(obj);\n\nIf you want to verify your version of Sketch is compatible (v43+):\n\n    import JSONPlugin from 'sketchapp-json-plugin';\n    if (JSONPlugin.appVersionSupported()) {\n      const layer = SJSON.fromSJSON(myJSON);\n      ...\n      document.pages[0].addLayers([layer]);\n    } else {\n      // Use old code path\n    }\n","readmeFilename":"README.md"}