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

stencila-libcore

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stencila-libcore

[![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) [

  • 0.2.13
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-75%
Maintainers
3
Weekly downloads
 
Created
Source

stencila/libcore : core function library

experimental Code coverage Community Chat

This 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:

Test

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

Try

You can try out functions in the browser developer console by building the distribution:

npm run build

then open index.html.

FAQs

Package last updated on 02 May 2018

Did you know?

Socket

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.

Install

Related posts

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