Skip to content

Instantly share code, notes, and snippets.

View nkrisc's full-sized avatar

Nathan Krischer nkrisc

View GitHub Profile
@nkrisc
nkrisc / symbol-names.py
Created February 28, 2019 02:10
Dump the names of all symbols in a Sketch file to an alphabetically sorted text file.
import os
import zipfile
import tempfile
import sys
import json
sketch_doc = sys.argv[1]
def get_symbol_names(zipname):
symbol_names = []
@nkrisc
nkrisc / format.py
Created February 28, 2019 02:09
Format the names of all symbols in a Sketch file to be all lowercase
import os
import zipfile
import tempfile
import sys
import json
zipname = sys.argv[1]
def format_symbol_name(name):
return name.lower()