New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

pattern-runner

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pattern-runner

Pattern runner for patterns.run

latest
Source
npmnpm
Version
0.0.2
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

pattern-runner

npm packagephobia/install packagephobia/publish

Pattern runner for patterns.run

Installing

# using npm
npm install pattern-runner

# using yarn
yarn add pattern-runner

Example usage

import { patternRunner } from "pattern-runner";

// https://patterns.run/pattern/square
const source = `for (let i = 0; i < size; i++) {
 for (let j = 0; j < size; j++) {
   print("* ");
 }
 newline();
}`;

patternRunner(source);
// * * * * *
// * * * * *
// * * * * *
// * * * * *
// * * * * *

patternRunner(source, 3);
// * * *
// * * *
// * * *

API

TODO

License

MIT License, Copyright (c) 2021 Griko Nibras

Keywords

console-patterns

FAQs

Package last updated on 07 Dec 2021

Related posts