Comparing version 0.0.0 to 0.0.1
{ | ||
"name": "ascii", | ||
"version": "0.0.0", | ||
"description": "create ascii arts from pictures using node-canvas", | ||
"version": "0.0.1", | ||
"description": "convert jpg/png/gif to ascii arts based on node-canvas", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
## ascii ![npm](https://badge.fury.io/js/ascii.png) | ||
create ascii arts from pictures using node-canvas by [turing](https://npmjs.org/~turing) | ||
convert jpg/png/gif to ascii arts based on node-canvas | ||
@@ -8,4 +8,2 @@ ### Installation | ||
$ npm install ascii | ||
// or install globally | ||
$ sudo npm install ascii -g | ||
```` | ||
@@ -15,3 +13,16 @@ | ||
````javascript | ||
var ascii = require('ascii'); | ||
var Ascii = require('ascii'); | ||
var pic = new Ascii('demo.png'); | ||
// output in terminal (terminal mode) | ||
pic.convert(function(err, result) { | ||
console.log(result); | ||
}); | ||
// output as html strings with css style (html mode) | ||
pic.convert('html', function(err, html){ | ||
console.log(html); | ||
// then save it | ||
require('fs').saveFileSync('demo.html',html); | ||
}); | ||
```` | ||
@@ -18,0 +29,0 @@ |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
212683
9
107
64
0
2