Skip to content

Instantly share code, notes, and snippets.

Avatar

Nathan Krischer nkrisc

View GitHub Profile
@nkrisc
nkrisc / symbol-names.py
Created Feb 28, 2019
Dump the names of all symbols in a Sketch file to an alphabetically sorted text file.
View symbol-names.py
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 Feb 28, 2019
Format the names of all symbols in a Sketch file to be all lowercase
View format.py
import os
import zipfile
import tempfile
import sys
import json
zipname = sys.argv[1]
def format_symbol_name(name):
return name.lower()