Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mz2/node-cocoscii
Node.js version of https://github.com/mrspeaker/cocoscii
https://github.com/mz2/node-cocoscii
Last synced: 25 days ago
JSON representation
Node.js version of https://github.com/mrspeaker/cocoscii
- Host: GitHub
- URL: https://github.com/mz2/node-cocoscii
- Owner: mz2
- Created: 2015-03-23T22:05:23.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-03-23T23:29:35.000Z (over 9 years ago)
- Last Synced: 2024-10-19T23:23:49.850Z (28 days ago)
- Language: JavaScript
- Size: 742 KB
- Stars: 31
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-cocoscii
This is a Node.js version of the [javascript (ES2015) version](https://github.com/mrspeaker/cocoscii) of [ASCIImage](http://asciimage.org/) by [Charles Parnot](http://twitter.com/cparnot). ASCIImage lets you create icons by defining some control points for drawing lines, paths, and circles. You can also style each shape individually. [Read all about the original project](http://cocoamine.net/blog/2015/03/20/replacing-photoshop-with-nsstring/), then read about [cocoscii](https://github.com/mrspeaker/cocoscii), then come back here.
# Try it out!
`node-cocoscii` includes a commandline tool `bin/saciimage.js` for translating .asciimage files into png. It accepts .asciimage data via stdin, and outputs to its stdout a PNG image representation of the image.
```
npm install -g node-cocoscii
cat ./examples/cross.asciimage | asciimage.js | open -f -a /Applications/Preview.app
```You'll see something like as follows:
![Example .asciimage translated to .png](example/example.png)
There are also a number of other implementations of ASCIImage available at [ASCIImage.org](http://asciimage.org).