Skip to content

giodamelio/pad-thai

Repository files navigation

Pad Thai

GitHub Workflow Status for Node.js GitHub Workflow Status for Deno Libraries.io dependency status for latest release Codacy grade Codacy coverage npm NPM

Pad Thai

Image CC BY-SA 3.0

Yum.

Install

Node.js

$ npm install pad-thai

Deno

import { padThai, padThaiStart, padThaiEnd } from 'https://github.com/giodamelio/pad-thai/raw/master/src/index.ts';

Usage

Node.js

import { padThai, padThaiStart, padThaiEnd } from 'pad-thai';

console.log(padThai(' Hello World ', 21)); // prints "thai Hello World thai"
console.log(padThaiStart(' Hello World', 16)); // prints "thai Hello World"
console.log(padThaiEnd('Hello World ', 16)); // prints "Hello World thai"

Deno

import { padThai, padThaiStart, padThaiEnd } from 'https://github.com/giodamelio/pad-thai/raw/master/src/index.ts';

console.log(padThai(' Hello World ', 21)); // prints "thai Hello World thai"
console.log(padThaiStart(' Hello World', 16)); // prints "thai Hello World"
console.log(padThaiEnd('Hello World ', 16)); // prints "Hello World thai"

Why?

I was hungry and bored one night.