Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@thednp/shorty

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@thednp/shorty

TypeScript shorties for the web

  • 2.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
266K
increased by1.6%
Maintainers
1
Weekly downloads
 
Created

What is @thednp/shorty?

@thednp/shorty is a utility library that provides a collection of small, reusable functions for common tasks in JavaScript. It aims to simplify and streamline code by offering concise and efficient solutions for various operations.

What are @thednp/shorty's main functionalities?

String Manipulation

This feature provides functions for manipulating strings, such as converting strings to camel case.

const { toCamelCase } = require('@thednp/shorty');
const result = toCamelCase('hello-world');
console.log(result); // 'helloWorld'

Array Utilities

This feature includes functions for working with arrays, such as removing duplicate elements.

const { unique } = require('@thednp/shorty');
const result = unique([1, 2, 2, 3, 4, 4, 5]);
console.log(result); // [1, 2, 3, 4, 5]

Object Utilities

This feature offers functions for handling objects, such as deep cloning an object.

const { deepClone } = require('@thednp/shorty');
const obj = { a: 1, b: { c: 2 } };
const clonedObj = deepClone(obj);
console.log(clonedObj); // { a: 1, b: { c: 2 } }

Type Checking

This feature provides functions for type checking, such as verifying if a value is a string.

const { isString } = require('@thednp/shorty');
const result = isString('hello');
console.log(result); // true

Other packages similar to @thednp/shorty

Keywords

FAQs

Package last updated on 28 Nov 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc