GithubHelp home page GithubHelp logo

luka1199 / run-time-information-gathering Goto Github PK

View Code? Open in Web Editor NEW

This project forked from proglang-typescript/run-time-information-gathering

0.0 0.0 0.0 510 KB

License: MIT License

JavaScript 89.38% Shell 10.14% HTML 0.27% Dockerfile 0.21%

run-time-information-gathering's Introduction

Master Mind - Work Package 3

Installation

Docker

Install Docker. https://docs.docker.com/install/

Build Docker image

Clone this repository and then run:

./build/build.sh

This will build an image called master-mind-wp3 on your local machine.

Usage

Get runtime information from one JS file

Run the docker container mounting your file on /tmp/file.js.

docker run \
	-v ABS_PATH_TO_YOUR_FILE:/tmp/file.js  \
	master-mind-wp3

The runtime information will be printed to stdout.

Example

docker run -v $(pwd)/tests/calculator/calculator.js:/tmp/calculator.js master-mind-wp3 /tmp/calculator.js

Blacklisted node modules

You can specify a JSON file that contains an array of blacklisted node modules which you don't want to instrument.

docker run \
	-v $(pwd)/tests/calculator/calculator.js:/tmp/calculator.js \
	-v PATH_TO_BLACKLIST.json:/tmp/blacklist.json
	master-mind-wp3 \
	/tmp/calculator.js
	/tmp/blacklist.json

example-blacklist.json:

[
	"lodash"
]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.