Skip to content
A deno module for format, trim and remove extra white spaces between characters. Make paragraph looks organised.
TypeScript
Branch: master
Clone or download
Latest commit 629b7e1 Oct 27, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig Pretty files Oct 26, 2019
LICENSE.txt First commit Oct 26, 2019
README.md Update readmd to use deno website import module (#2) Oct 27, 2019
mod.ts Rename module Oct 26, 2019
test.ts Add more test cases (#3) Oct 27, 2019
tsconfig.json First commit Oct 26, 2019

README.md

deno-prettystring

A deno module for trim and remove extra spaces between characters. Make paragraph looks organised.

Usage

import prettystring from "https://deno.land/x/prettystring/mod.ts";

const formattedEnglish = prettystring(
  "prettystring    can  make     a paragraph   looks      better    !"
);
// prettystring can make a paragraph looks better!

const fomattedMixedCharacters = prettystring(
  "  這個    prettystring    可   以  使段落看  起來  更好  !     良     い  で  す   。  ε٩(๑>    ₃ <)۶з"
);
// 這個 prettystring 可以使段落看起來更好!良いです。 ε٩(๑> ₃ <)۶з

You could find more use cases in test.ts

Run test

deno test.ts

Copyright and license

Licensed under the MIT license.

You can’t perform that action at this time.