2.0.5 • Published 2 months ago

@zerodep/string-trimleft v2.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@zerodep/string-trimleft

version language types license

CodeFactor Known Vulnerabilities

A utility to remove a specific character from the start of a string. Non-string values will cause a ZeroDepError to be thrown.

Full documentation is available at the zerodep.app page.

Examples

All @zerodep packages support both ESM and CJS.

import { stringTrimLeft } from '@zerodep/string-trimleft';
// or
const { stringTrimLeft } = require('@zerodep/string-trimleft');

Using Default Space Separator

stringTrimLeft('   some string   '); // "some string   "

Using Custom Separator

stringTrimLeft('xx some string  xx', 'x'); // " some string  xx"

Unsuccessful Response

stringTrimLeft({ not: 'a string' }); // throws ZeroDepError: Value is not a string
2.0.5

2 months ago

2.0.4

2 months ago

2.0.3

7 months ago

2.0.1

10 months ago