You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
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

ES6 JavaScript shorties

1.0.3
Source
npm
Version published
Weekly downloads
312K
1.54%
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

shorty

FAQs

Package last updated on 28 May 2022

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