Giter Site home page Giter Site logo

md-run's Introduction

โญ md-run โญ - Run MarkDown file

logo

Why md-run? ๐Ÿค”

Have you ever tired of testing every codeblocks in your MarkDown documentation ever and ever again? ๐Ÿ˜“

By using md-run, you no longer need to do that manually. ๐Ÿ˜Ž

Install

npm install -g md-run

Usage

$ md-run
Options:
  -s, --script   script name. eg: start, test,...    [string] [default: "start"]
  -u, --uri      uri pointed to markdown file                [string] [required]
      --help     Show help                                             [boolean]
      --version  Show version number                                   [boolean]
md-run start https://raw.githubusercontent.com/chientrm/md-run/master/README.md

Output: Rectangles are overlapped

Example

Rectangle overlap checking

package.json

In order to check rectangles overlapping, we recommend you to use npmjs module overlap.

{
    "scripts": {
        "start": "node index.js",
    },
    "dependencies": {
        "overlap": "2.2.10"
    }
}

index.js

In this example, we declare 2 constant rectangle a and b, check if they are overlapped and then print the result.

import overlap from "overlap";

const a = { x: 10, y: 10, width: 5, height: 10 };
const b = { x: 8, y: 8, width: 10, height: 5 };
overlap(a, b)
  ? console.log("Rectangles are overlapped")
  : console.log("Rectangles are not overlapped");

Contributing

  • Post issue when you found them
  • Pull request if you can help fix issue.

"Buy Me A Coffee"

md-run's People

Contributors

chientrm avatar

Watchers

 avatar

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.