🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@neodx/std

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neodx/std

Standard language helpers

0.3.1
latest
npm
Version published
Weekly downloads
1.4K
14.71%
Maintainers
1
Weekly downloads
 
Created
Source

@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 🤓

FAQs

Package last updated on 21 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts