Socket
Socket
Sign inDemoInstall

labs

Package Overview
Dependencies
73
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    labs

Helper script for making Lab Reports Edit


Version published
Weekly downloads
204
increased by827.27%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Labs

Disclaimer: this is still WIP. Any help is welcome!

This simple set of js scripts can help you to write your Latex Lab Report.

They are very simple to use. Just load all files in a js enviroment, and use the following commands to setup:

const { Env, EnvBuilder } = require('labs');

// Create a new env
let env = new Env({
	n: ['N'],
	x: ['x', 'm'],
	mu: ['\\mu', 'm', 'x * n']
	// name: [ latex_name, unit, formula_if_derived ]
});

// Add values for variable n
env.add('n', ['1', '2', '3'], '0.5');

env.add('x', [
	['1', '0.1'],
	['2', 'n', '0.02'],
	'3'
]);

/*
 * env.add(variable, [ ..., [ value, multiplier, error ], ... ], default_multiplier, default_error);
 */

// Display the table (return the table Latex as string)
env.latexTable(['n', 'x', 'f']);

FAQs

Last updated on 01 May 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc