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

2.0.5 • Public • Published

@zerodep/string-upperfirst

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 { stringUpperFirst } from '@zerodep/string-upperfirst';
// or
const { stringUpperFirst } = require('@zerodep/string-upperfirst');

Successful Response

stringUpperFirst('california'); // "California"
stringUpperFirst('new york'); // "New york"
stringUpperFirst('Vermont'); // "Vermont"

Unsuccessful Response

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

Package Sidebar

Install

npm i @zerodep/string-upperfirst

Homepage

zerodep.app

Weekly Downloads

3

Version

2.0.5

License

MIT

Unpacked Size

6.32 kB

Total Files

7

Last publish

Collaborators

  • cdepage