Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gia-ast

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gia-ast - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

38

gia-ast-meta.js

@@ -147,3 +147,41 @@ #!/usr/bin/env node

const default_dot_env = `
# AST
asthostname=localhost
astoutsuffix=__sty__
astcallprotocol=http
astcallmethod=/stylize
astmetaportnum=8999
astusemetasvr=true
astdebug=false
astsavemeta=true
astcleanname=true
astappendmodelid=false
echocmd=false
devmode=false
astmetaoutputdir=.astmeta
res1=1500
icdirbase=/a/albums/creations
webdir=/kwww/html/astia/albums
`;
//if no .env, create one using default_dot_env
try {
if (!fs.existsSync('.env')) {
fs.writeFileSync('.env', default_dot_env);
console.log(".env file created with default values");
}
}
catch (error) {
console.log("Error creating .env file");
}
try {
//console.log("Do we have a dot env ??");

@@ -150,0 +188,0 @@ var tst = require('dotenv').config()

36

gia-ast.js

@@ -86,4 +86,5 @@ #!/usr/bin/env node

const envListHelp = `
vi ~/.bash_env
export asthostname="orko.guillaumeisabelle.com"
vi ~/.bash_env or vi .env
#export asthostname="orko.guillaumeisabelle.com"
asthostname=localhost
export astoutsuffix="__stylized__"

@@ -95,5 +96,36 @@ #export astportbase=90 #DEPRECATED, use full port ex. 9001,7860

`;
const default_dot_env = `
# AST
asthostname=localhost
astoutsuffix=__sty__
astcallprotocol=http
astcallmethod=/stylize
astmetaportnum=8999
astusemetasvr=true
astdebug=false
astsavemeta=true
astcleanname=true
astappendmodelid=false
echocmd=false
devmode=false
astmetaoutputdir=.astmeta
res1=1500
`;
//if no .env, create one using default_dot_env
try {
if (!fs.existsSync('.env')) {
fs.writeFileSync('.env', default_dot_env);
console.log(".env file created with default values");
}
}
catch (error) {
console.log("Error creating .env file");
}
try {
var tst = require('dotenv').config()

@@ -100,0 +132,0 @@ if (tst.parsed) {

6

package.json
{
"name": "gia-ast",
"version": "0.4.2",
"version": "0.4.3",
"description": "A CLI Wrapping AST Web API calls to servers",

@@ -15,5 +15,3 @@ "main": "index.js",

"gia-ast": "gia-ast.js",
"gia-ast-meta": "gia-ast-meta.js",
"gia-astv1": "gia-astv1.js",
"gia-ast2": "gia-ast3.js"
"gia-ast-meta": "gia-ast-meta.js"
},

@@ -20,0 +18,0 @@ "repository": {

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