@zerodep/string-lowerfirst
TypeScript icon, indicating that this package has built-in type declarations

2.0.5 • Public • Published

@zerodep/string-lowerfirst

version language types license

CodeFactor Known Vulnerabilities

A utility to convert the first letter of a provided string to a lowercase value. 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 { stringLowerFirst } from '@zerodep/string-lowerfirst';
// or
const { stringLowerFirst } = require('@zerodep/string-lowerfirst');

Successful Response

stringLowerFirst('California'); // "california"
stringLowerFirst('New York'); // "new York"
stringLowerFirst('vermont'); // "vermont"

Unsuccessful Response

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i @zerodep/string-lowerfirst

      Homepage

      zerodep.app

      Weekly Downloads

      1

      Version

      2.0.5

      License

      MIT

      Unpacked Size

      6.32 kB

      Total Files

      7

      Last publish

      Collaborators

      • cdepage