https://github.com/james2doyle/sublime-to-atom-snippets
This little script allows you to convert sublime text snippets to atom editor cson snippets.
https://github.com/james2doyle/sublime-to-atom-snippets
Last synced: 11 months ago
JSON representation
This little script allows you to convert sublime text snippets to atom editor cson snippets.
- Host: GitHub
- URL: https://github.com/james2doyle/sublime-to-atom-snippets
- Owner: james2doyle
- Created: 2014-03-22T03:54:50.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-24T04:44:55.000Z (over 10 years ago)
- Last Synced: 2025-04-02T22:23:25.144Z (about 1 year ago)
- Language: JavaScript
- Size: 143 KB
- Stars: 26
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sublime-to-atom-snippets
========================
This little script allows you to convert sublime text snippets to atom editot cson snippets.
### Usage
This is a very lazy script. There is no bin or anything. Just drop a folder full of snippets in the `source` folder and then use `node index.js` to run the script.
It is not recursive. It will only read one level into the source folder.
### Output
This will output a 1:1 xml-to-cson file. So having `source/jquery/$.sublime-snippet` will render to `output/jquery/$.cson`.
### XML variables
If there is **no description set**, this script will use the filename as the description.
If there **is no scope**, it will throw an error.
### Output
The output is mixed quality. There are a bunch of little weird things that I have to compensate for. The CSON isn't as verbose as the XML for sublime snippets.
### Code Quality
Please don't look at the source.