Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

just-squash

1.1.0 • Public • Published

just-squash

Part of a library of zero-dependency npm modules that do just do one thing. Guilt-free utilities for every occasion.

  squash('the cat sat on the mat'); // 'thecatsatonthemat'
  squash(' the cat sat on the mat '); // 'thecatsatonthemat'
  squash('\tthe cat\n sat \fon \vthe \rmat '); // '\tthecat\nsat\fon\vthe\rmat'
  squash('\tthe cat\n sat \fon \vthe \rmat ', true); // 'thecatsatonthemat'
  squash(`the cat
sat on the mat`, true); // thecatsatonthemat

Install

npm i just-squash

DownloadsWeekly Downloads

1

Version

1.1.0

License

MIT

Unpacked Size

2.81 kB

Total Files

4

Last publish

Collaborators

  • avatar