@neodx/std
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published

@neodx/std

This package contains a set of utilities that are used by other packages in the @neodx namespace.

Currently, is not intended to be used directly by the end user.

But! Let me show one powerful API - toCase, all-in-one function for formatting case of strings.

Inspired by casex

import { toCase } from '@neodx/std';

const str = 'I want_to change-case';

toCase(str, 'ca_se'); // i_want_to_change_case
toCase(str, 'caSe'); // iWantToChangeCase
toCase(str, 'CaSe'); // IWantToChangeCase
toCase(str, 'CA_SE'); // I_WANT_TO_CHANGE_CASE
toCase(str, 'Ca se'); // I want to change case

I think you got the idea 🤓

Readme

Keywords

none

Package Sidebar

Install

npm i @neodx/std

Weekly Downloads

774

Version

0.3.1

License

MIT

Unpacked Size

106 kB

Total Files

7

Last publish

Collaborators

  • secundant