Skip to content

Commit

Permalink
Merge release v0.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mster committed Jul 15, 2020
2 parents 3d116b1 + a268d9e commit f612dac
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
language: node_js
node_js:
- 8
- 10
- 12
- 14
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,16 +56,18 @@ npm install imscii

Start sprinting!

**artRobot.js**

```js
;(function whoNeedsArtSchool () {
;(function imsciify () {
require('imscii')('/path/to/my/sick/photo.jpg', {
width: 80
})
})()
```

```sh
$ node myScript.js >> myArt.txt
$ node artRobot.js >> myArt.txt
```

## Examples
Expand All @@ -78,7 +80,7 @@ No really, you can make them as big as you want -- even larger than the source i

## FAQ

#### Why doesn't my text file look my the console output?
#### Why doesn't my text file look like my the console output?

Well, that's due to the font your editor/system uses!

Expand Down
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
'use strict'

const Jimp = require('jimp')
const debug = require('util').debuglog('imscii')
const { debuglog } = require('util')

const debug = debuglog('imscii')
const print = console.log

module.exports = imscii

function imscii (read, options) {
if (!options) options = {}

const pmap = []

function mapImage (img) {
if (!options) options = {}

const { width, height } = options

if (width && height) {
Expand Down
91 changes: 90 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imscii",
"version": "0.0.4",
"version": "0.0.5",
"description": "image to ascii",
"main": "index.js",
"scripts": {
Expand All @@ -26,6 +26,7 @@
},
"homepage": "https://github.com/mster/imscii#readme",
"dependencies": {
"image-decode": "^1.2.2",
"jimp": "^0.14.0"
},
"devDependencies": {
Expand Down

0 comments on commit f612dac

Please sign in to comment.