Socket
Socket
Sign inDemoInstall

ascii

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 0.0.1

ascii.js

4

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc