This package has been deprecated

Author message:

Deprecated. Use `String#trimStart()` instead.

trim-left

2.0.0 • Public • Published

trim-left

Similar to String#trim() but removes only whitespace on the left

Install

$ npm install trim-left

Usage

import trimLeft from 'trim-left';

trimLeft('  unicorn  ');
//=> 'unicorn  '

Related

  • trim-right - Similar to String#trim() but removes only whitespace on the right
  • trim-off-newlines - Similar to String#trim() but removes only newlines

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i trim-left

    Weekly Downloads

    1,026

    Version

    2.0.0

    License

    MIT

    Unpacked Size

    2.53 kB

    Total Files

    4

    Last publish

    Collaborators

    • sindresorhus