You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@neodx/std

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@neodx/std

Standard language helpers

0.2.0
npmnpm
Version published
Weekly downloads
1.4K
-11.35%
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 10 Oct 2023

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