Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 2.25 KB

README.md

File metadata and controls

54 lines (37 loc) · 2.25 KB

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.