+3
-0
| const gulp = require('gulp') | ||
+14
-5
@@ -10,8 +10,17 @@ #! /usr/bin/env node | ||
| default: { | ||
| bertfile: '.bert.js' | ||
| } | ||
| bertfile: '.bert.js', | ||
| 'global-bert': false | ||
| }, | ||
| alias: { | ||
| 'g': 'global-bert' | ||
| }, | ||
| boolean: [ | ||
| 'global-bert' | ||
| ] | ||
| }) | ||
| console.log(argv) | ||
| /* Load instance to bert */ | ||
| const localBertPath = process.env.BERT_MODE_DEV | ||
| const localBertPath = process.env.BERT_MODE_DEV || argv['global-bert'] === true | ||
| ? '..' | ||
@@ -63,3 +72,3 @@ : (() => { | ||
| tasksToLoad.forEach(taskName => { | ||
| tasksToLoad.forEach((taskName) => { | ||
| if (taskName in localBert.tasks) { | ||
@@ -82,3 +91,3 @@ const task = localBert.tasks[taskName] | ||
| for (let i = 0; i < serieTasks.length; i+=1) { | ||
| for (let i = 0; i < serieTasks.length; i += 1) { | ||
| const taskName = serieTasks[i] | ||
@@ -85,0 +94,0 @@ |
+1
-0
@@ -13,2 +13,3 @@ 'use strict' | ||
| } | ||
| util.inherits(Bert, Orchestrator) | ||
@@ -15,0 +16,0 @@ |
+1
-1
| { | ||
| "name": "bert.js", | ||
| "version": "0.0.19", | ||
| "version": "0.0.20", | ||
| "description": "A child process async.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
+17
-2
| # 🍹 bert | ||
| A child process async with [Docker][]. | ||
| A child process to work with [Docker][]. | ||
| bert.js prepares an environment to load your command. it is useful to a used application without your local installation. | ||
| ## What does Bert? | ||
| Bert is a module to NodeJS, this provides an easily API to work with [child_process][] on you local machino or a container inside Docker. | ||
| Bert is a module to NodeJS, this provides an easily API to work with [child_process][] on you local machino or a container inside [Docker][]. | ||
@@ -22,4 +24,17 @@  | ||
| ### A Example | ||
| ```javascript | ||
| const bert = require('bert.js') | ||
| // Prepare the agent to node 7.7.0 | ||
| const node = bert.agent('node', { image: 'node:7.7.0' }) | ||
| // Many things | ||
| node.sh(['node', '--version']) // v7.7.0 | ||
| ``` | ||
| [new issue]: https://github.com/JonDotsoy/bert-cli/issues/new "New Issue" | ||
| [child_process]: https://nodejs.org/api/child_process.html "Child Process" | ||
| [Docker]: http://docker.io/ "A Better Way to Build Apps" |
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
48913
1.05%25
4.17%528
1.54%40
60%