Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
stencila-libcore
Advanced tools
[![experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](http://github.com/badges/stability-badges) [![Code coverage](https://codecov.io/gh/stencila/libcore/branch/master/graph/badge.svg)](https://codecov.io/gh/stencila/libcore) [
stencila/libcore
: core function libraryThis the Stencila Core Library, a library of functions that are built in to Stencila's Mini language. It is to Stencila what Excel functions are to Excel, the Python Standard Library is to Python, the R Base Package is to R, etc, etc.
Want to see a list of functions currently implemented in Stencila? Check out our list of functions here.
Want to contribute a function to Libcore? More on contributing to Libcore here.
Stencila functions can be implemented, and used, in a variety of languages. Mini is intentionally simple. Instead of trying to be a complete programming language, it focuses on being a "glue" between other languages. This allows functions to be implemented using the best language for the job. And when a function is implemented in multiple languages, this approach allows for the optimization of function calls based on implementation speed and data location. Learn more about Mini here.
meta
A folder for cordinating design and implementations of functions across langages.
Javascript
Create the Javascript function in the relevant ./src/*.js
file with the same name as the function e.g. function sum(x)...
for sum.fun.xml
.
If your implementation overloads parameter types then you will need to handle that in the implementation.
Currently, the following are available in the global environment:
Run all tests in Node.js:
npm test
Run all tests in the browser:
npm run test-browser
then open test/index.html
.
To watch source code and run tests on changes use the -w
flag to make.js
node make test -w
node make test:browser -w
You can try out functions in the browser developer console by building the distribution:
npm run build
then open index.html
.
FAQs
[![experimental](https://img.shields.io/badge/stability-experimental-orange.svg)](http://github.com/badges/stability-badges) [![Code coverage](https://codecov.io/gh/stencila/libcore/branch/master/graph/badge.svg)](https://codecov.io/gh/stencila/libcore) [
The npm package stencila-libcore receives a total of 15 weekly downloads. As such, stencila-libcore popularity was classified as not popular.
We found that stencila-libcore demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.