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

npmfunkingpackage

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmfunkingpackage

A simple utility package with basic functions for greeting, math operations, and string manipulation

1.0.0
latest
Source
npmnpm
Version published
Weekly downloads
10
-81.82%
Maintainers
1
Weekly downloads
 
Created
Source

NPM Package

A simple utility package with basic functions for greeting, math operations, and string manipulation.

Installation

npm install npmpackage

Usage

const { greet, add, capitalize } = require('npmpackage');

// Greeting function
console.log(greet('World')); // "Hello, World!"
console.log(greet('Alice', 'Hi')); // "Hi, Alice!"

// Math function
console.log(add(5, 3)); // 8

// String manipulation
console.log(capitalize('hello world')); // "Hello World"

API

greet(name, greeting)

Greets a person with a customizable message.

  • name (string): The name of the person to greet
  • greeting (string, optional): Custom greeting message (default: "Hello")

Returns a formatted greeting string.

add(a, b)

Calculates the sum of two numbers.

  • a (number): First number
  • b (number): Second number

Returns the sum of the two numbers.

capitalize(str)

Capitalizes the first letter of each word in a string.

  • str (string): The string to capitalize

Returns the capitalized string.

Testing

npm test

License

ISC

Author

arsh

Contributing

  • Fork the repository
  • Create your feature branch (git checkout -b feature/amazing-feature)
  • Commit your changes (git commit -m 'Add some amazing feature')
  • Push to the branch (git push origin feature/amazing-feature)
  • Open a Pull Request

Keywords

utility

FAQs

Package last updated on 14 Jul 2025

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