
Research
/Security News
Popular npm Packages in the keyv and Cacheable Namespaces Compromised in Active Supply Chain Attack
Popular npm packages keyv and cacheable compromised.
@totemstan/mathjx
Advanced tools
Extends MathJS to provide Matlab-js-blended programming with the following control-blocks:
if TEST
DO
elseif TEST
DO
:
else
DO
end
switch TEST
case TEST
DO
:
default TEST
DO
end
try
DO
catch
DO
end
for INDEX
DO
end
while TEST
DO
end
until TEST
DO
end
when EVENT
DO
end
def f=(x,y,...)
DO
end
Inline functions are supported using fat-arrows:
(x,y,...) => {
DO
}
MathJS emulates the Matlab syntax while protecting against lax Matlab expressions. Thus
for term-wise cos([0,1,2]) use Cos([0,1,2]) or map([0,1,2], cos). Transposes are likewise
strict so [1,2,3]', [[1,2,3]]', and [1;2;3]' produce [1,2,3], [1;2;3], and [1,2,3], respectively.
Import a file using <FILE, inspect or get help on a KEY variable or function with ?KEY, code multiple DOs on same
line with DO \ DO \ .... Otherwise, follow MathJS rules.
Acquire and optionally configure MATHJX as follows:
const $ = require("@totemstan/mathjx").config({
key: value, // set key
"key.key": value, // indexed set
"key.key.": value // indexed append
});
where configuration keys follow ENUMS deep copy conventions.
npm install @totemstan/mathjx # Install
npm run start [ ? | $ | ...] # Unit test
npm run verminor # Roll minor version
npm run vermajor # Roll major version
npm run redoc # Regen documentation
Extends MathJS with program control-blocks. This module documented in accordance with jsdoc.
Requires: module:mathjs, module:enums, module:cp
Author: ACMESDS
Hash of functions to import into MathJX.
Kind: inner property of MATHJX
Configure MathJX with supplied options hash.
Kind: inner method of MATHJX
| Param | Type | Description |
|---|---|---|
| opts | Object | Options hash with keys following the deep-copy conventions |
Feel free to
© 2012 ACMESDS
FAQs
Extended mathjs
We found that @totemstan/mathjx demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Popular npm packages keyv and cacheable compromised.

Security News
A misconfiguration gave three Anthropic models internet access, and one, believing it was in a simulation, shipped a credential-stealing package to PyPI.

Security News
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.