pattern-runner
v0.0.2
Published
Pattern runner for patterns.run
Downloads
4
Maintainers
Readme
pattern-runner
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