npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@arkaraj/term

v1.0.0

Published

A simple npm package that can convert string to Uppercase/lowercase, join strings, and do basic conversions like binary-decimal, height, weight

Downloads

1

Readme

@arkaraj/term

A simple npm package that can convert string to Uppercase/lowercase, join strings, and can do basic conversions in Height, Weight and Temperature it can also showcase time. It has 0 dependencies so its really light weight.

https://img.shields.io/npm/v/@arkaraj/term?logo=npm

Documentation

Contribution

Pull requests are always welcome! Please base pull requests against the main branch. Star it if you like it.

Installation

$ npm i @arkaraj/term

Importing

// Using Node.js `require()`
const term = require('@arkaraj/term');

// Using ES6 imports
import term from '@arkaraj/term';

Joining Words

Join words with any sign/symbol(+,-,$,%,etc..). Takes in a String and a symbol

term.join(String, Symbol)

Default Symbol is blank

UpperCase and LowerCase

This converts the given string to uppercase and lowercase strings This function takes in a string variable

// UpperCase
const upperString = term.upperCase(String);

// LowerCase
const lowerString = term.lowerCase(String);

Binary-to-Decimal Conversions

To convert from binary to decimal and vice versa. This accepts decimal places also(floating poin numbers).

The function returns in Number

// Returns result the binary Number
const binary = term.toBinary(num: Number);

// Takes in the binary number and converts to Decimal
const decimal = term.toDecimal(num: Number);

Height Conversions

This is for conversion of the height metrics/units like centimeters, meters, feet/foot and inches This function takes in 3 parameters, the height in numbers the unit of the height the user has inputed and finally the unit the user wants to find the height in.

The funciton returns in Number

centimeters --> cm meters --> m feet --> ft inches --> in

const newHeight = term.height(num: Number, metric: String, convMetric: String);

Weight Conversions

This is for conversion of the weight units like kilograms, pounds and ounces. This function takes in 3 parameters, the weight in numbers the unit of the weight the user has inputed and finally the unit the user wants to find the weight in.

The funciton returns in Number

Kilograms --> kg Pounds --> lb Ounces --> oz

const newHeight = term.weight(num: Number, metric: String, convMetric: String);

Temparature Conversions

This is for conversion of the temparature units like Celsius, Fahrenheit and Kelvin. This function takes in 3 parameters, the value in numbers the unit of the value the user has inputed and finally the unit the user wants to find the value in.

The funciton returns in Number

Celsius --> c Fahrenheit --> f Kelvin --> k

const newTemp = term.temperature(num: Number, metric: String, convMetric: String);

Getting Basic DateTime

This is to get the current Date time

const time = term.getDate();