Gathering detailed insights and metrics for anonymous-apex
Gathering detailed insights and metrics for anonymous-apex
Gathering detailed insights and metrics for anonymous-apex
Gathering detailed insights and metrics for anonymous-apex
Easily run anonymous Salesforce Apex code with Node.js or on the command line.
npm install anonymous-apex
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
Unlicense License
6 Commits
1 Watchers
1 Branches
1 Contributors
Updated on May 04, 2018
Latest Version
0.0.2
Package Id
anonymous-apex@0.0.2
Unpacked Size
8.08 kB
Size
3.04 kB
File Count
7
NPM Version
6.0.0
Node Version
8.1.4
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Easily run anonymous Salesforce Apex code with Node.js or on the command line.
anonymous-apex
allows you to run Apex code from the command line or as a
Node.js module.
We also allow you to template your Apex code with the EJS templating language. http://www.ejs.co
1# Install locally for Node.js module usage. 2npm i anonymous-apex 3 4# Install globally for command line usage. 5npm i -g anonymous-apex
You can require anonymous-apex
as a node module.
1const apex = 'System.debug(\'<%= some.message %>\');'; 2 3// data is optional. 4const data = { 5 some: { 6 message: 'frank woo' 7 } 8}; 9 10const options = { 11 username: process.env.ANONYMOUS_APEX_USERNAME, 12 password: process.env.ANONYMOUS_APEX_PASSWORD 13}; 14 15require('anonymous-apex').execute(options, apex, data) 16 .then((results) => { 17 console.error('\ndone', results); 18 // Results look as follows. If compiled or success are false, you 19 // won't get here, an error will be thrown, and you will end up in 20 // the catch block below. 21 // 22 // { line: -1, 23 // column: -1, 24 // compiled: true, 25 // success: true, 26 // compileProblem: null, 27 // exceptionStackTrace: null, 28 // exceptionMessage: null } 29 }) 30 .catch((error) => { 31 console.error(error); 32 process.exit(13); 33 });
You can run anonymous-apex
from the command line.
1anonymous-apex my-code.apex 2 3# or with template data. 4anonymous-apex my-code.apex template-data.json
Usage: anonymous-apex APEX [TEMPLATE_DATA]
APEX (required) is the path to a file containing your Apex code
OR just a string of Apex code.
TEMPLATE_DATA (optional) is the path to a file containing
JSON data to apply to your APEX code template.
We will use the following environment variables.
ANONYMOUS_APEX_USERNAME
ANONYMOUS_APEX_PASSWORD
Password needs to be your Salesforce password with the security
token appended.
You can set the NODE_DEBUG environment variable if you want us
to be chatty (INDLUDING USERNAME and PASSWORD info)!!!
NODE_DEBUG=ANONYMOUS_APEX anonymous-apex APEX [TEMPLATE_DATA]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More