New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ansi-art

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ansi-art - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

.editorconfig

2

dist/index.js

@@ -1,1 +0,1 @@

module.exports=function(n){function e(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return n[r].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var t={};return e.m=n,e.c=t,e.i=function(n){return n},e.d=function(n,t,r){e.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:r})},e.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return e.d(t,"a",t),t},e.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},e.p="",e(e.s=7)}([function(n,e,t){n.exports=t.p+"/arts/ironman.ansi"},function(n,e,t){n.exports=t.p+"/arts/link.ansi"},function(n,e,t){n.exports=t.p+"/arts/mario.ansi"},function(n,e,t){n.exports=t.p+"/arts/minions.ansi"},function(n,e,t){n.exports=t.p+"/arts/panda.ansi"},function(n,e,t){n.exports=t.p+"/arts/parrot.ansi"},function(n,e){n.exports=require("fs")},function(n,e,t){"use strict";function r(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(e,"__esModule",{value:!0});var a=t(2),i=r(a),u=t(3),o=r(u),f=t(5),p=r(f),s=t(0),l=r(s),d=t(4),c=r(d),m=t(1),_=r(m),x=t(6),h=r(x),v=[{name:"mario",path:__dirname+i.default},{name:"minions",path:__dirname+o.default},{name:"parrot",path:__dirname+p.default},{name:"ironman",path:__dirname+l.default},{name:"panda",path:__dirname+c.default},{name:"link",path:__dirname+_.default}],y=function(n){var e="+"+"-".repeat(n.length+2)+"+ \n| "+n+" |\n+"+"-".repeat(n.length+2)+"+\n";return e+=" \\\n \\\n"},b=function(n){var e=n||{},t=e.artName,r=e.filePath,a=e.speechText,i="";if(r){if(!h.default.existsSync(r))return"Art file not found!"+r;i=h.default.readFileSync(r,"utf8")}else{if(!t)return"artName or filePath required.";var u=v.find(function(n){return n.name===t});if(!u)return"Art not found";i=h.default.readFileSync(u.path,"utf8")}return a&&(i=y(a)+i),i};e.default={get:b}}]);
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var a=n[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,t),a.l=!0,a.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function a(e){var t="-".repeat(e.length+2),n="+"+t+"+ \n| "+e+" |\n+"+t+"+\n";return n+=" \\\n \\\n"}function u(e){var t=e||{},n=t.artName,r=t.filePath,u=t.speechText,i="";if(r){if(!o.default.existsSync(r))return"Art file not found! "+r;i=o.default.readFileSync(r,"utf8")}else{if(!n)return"artName or filePath required.";var f=l.default.find(function(e){return e.name===n});if(!f)return"Art not found";i=o.default.readFileSync(f.path,"utf8")}return u&&(i=a(u)+i),i}Object.defineProperty(t,"__esModule",{value:!0});var i=n(1),o=r(i),f=n(2),l=r(f);t.default={get:u}},function(e,t){e.exports=require("fs")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(3),a=function(e){return e&&e.__esModule?e:{default:e}}(r),u=[{name:"mario",path:a.default.resolve(__dirname,"arts/mario.ansi")},{name:"minions",path:a.default.resolve(__dirname,"arts/minions.ansi")},{name:"parrot",path:a.default.resolve(__dirname,"arts/parrot.ansi")},{name:"ironman",path:a.default.resolve(__dirname,"arts/ironman.ansi")},{name:"panda",path:a.default.resolve(__dirname,"arts/panda.ansi")},{name:"link",path:a.default.resolve(__dirname,"arts/link.ansi")}];t.default=u},function(e,t){e.exports=require("path")}]);
{
"name": "ansi-art",
"version": "1.2.1",
"version": "1.2.2",
"author": "gaurav chikhale",
"license": "MIT",
"description": "create ansi art using simple texts",
"main": "dist/index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack -p",
"watch": "webpack --watch --progress",
"prepublish": "npm run build"
},
"repository": {

@@ -16,2 +12,5 @@ "type": "git",

},
"bugs": {
"url": "https://github.com/gauravchl/ansi-art/issues"
},
"keywords": [

@@ -21,16 +20,23 @@ "ansi",

],
"author": "gaurav chikhale",
"license": "MIT",
"bugs": {
"url": "https://github.com/gauravchl/ansi-art/issues"
},
"homepage": "https://github.com/gauravchl/ansi-art#readme",
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-loader": "^7.0.0",
"babel-preset-env": "^1.4.0",
"babel-preset-es2015": "^6.24.1",
"file-loader": "^0.11.1",
"webpack": "^2.4.1"
"babel-core": "6.25.0",
"babel-loader": "7.0.0",
"babel-preset-env": "1.4.0",
"eslint": "3.19.0",
"eslint-config-airbnb": "15.0.2",
"eslint-plugin-import": "2.7.0",
"eslint-plugin-jsx-a11y": "5.1.1",
"eslint-plugin-react": "7.1.0",
"stylelint": "8.0.0",
"stylelint-config-standard": "17.0.0",
"webpack": "3.4.0"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "webpack -p && npm run copy-arts",
"watch": "webpack --watch --progress",
"prepublish": "npm run build",
"copy-arts": "cp -R src/arts/ dist/arts/"
}
}
#### ANSI ART
[![npm](https://img.shields.io/npm/v/ansi-art.svg?maxAge=000)](https://www.npmjs.com/package/ansi-art) [![npm](https://img.shields.io/npm/dm/ansi-art.svg?maxAge=000)](https://www.npmjs.com/package/ansi-art)

@@ -3,0 +4,0 @@ Create ANSI art and render it with speech bubbles inside node.

@@ -1,13 +0,11 @@

var path = require('path');
var webpack = require('webpack');
const path = require('path');
const webpack = require('webpack');
const DIST_DIR = path.resolve(__dirname, 'dist');
const SRC_DIR = path.resolve(__dirname, 'src');
const WEB_DIR = path.resolve(__dirname, 'webapp');
var DIST_DIR = path.resolve(__dirname, 'dist');
var SRC_DIR = path.resolve(__dirname, 'src');
var WEB_DIR = path.resolve(__dirname, 'webapp');
var config = {
entry: SRC_DIR + '/index.js',
const config = {
entry: `${SRC_DIR}/index.js`,
output: {

@@ -21,13 +19,11 @@ path: DIST_DIR,

{
test: /\.js|\.es6$/,
test: /\.js$/,
include: SRC_DIR,
loader: 'babel-loader',
exclude: /node_modules/,
query: { presets: ['es2015']}
query: {
presets: ['env'],
},
},
{
test: /\.(ansi)$/i,
loader: 'file-loader?name=/arts/[name].[ext]'
}
]
],
},

@@ -46,10 +42,8 @@ plugins: [

__filename: false,
}
},
};
var webappConfig = {
entry: WEB_DIR + '/src/index.js',
const webappConfig = {
entry: `${WEB_DIR}/src/index.js`,
output: {

@@ -62,7 +56,9 @@ path: WEB_DIR,

{
test: /\.js|\.es6$/,
include: WEB_DIR + '/src',
test: /\.js$/,
include: `${WEB_DIR}/src`,
loader: 'babel-loader',
exclude: /node_modules/,
query: { presets: ['es2015']}
query: {
presets: ['env'],
},
},

@@ -74,7 +70,5 @@ ],

],
};
}
module.exports = [ config, webappConfig ];
module.exports = [config, webappConfig];
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc