Skip to content

technobuddha/library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

115 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image image image image image image

image

Introduction

This is a part of the large library of many things that the Technobuddha has found useful over the years.

There is a plethora of functions and classes for working with arrays, strings, numbers, dates, objects, and more. Ranging from the simple (clamp) to the complex (largestInscribedRectangle), this library has something for everyone.

Contents

Group Entities
Array Fun things you can do with arrays. 11 Functions and 4 Types
Binary Better than unary. 9 Functions and 2 Types
Binary 5 Functions
Casing 12 Functions
Common 3 Functions
Comparison 9 Functions and 1 Type
Conversion 8 Functions and 2 Types
Diff Match and Patch 3 Constants, 2 Functions, and 2 Types
English 6 Functions and 3 Types
Escape 11 Functions and 1 Type
Events 1 Type
File System 14 Functions and 2 Types
Function 3 Functions and 6 Types
Fuzzy 1 Function
Fuzzy Match 5 Functions and 5 Types
Geometry 2 Constants, 46 Functions, and 12 Types
GraphQL 2 Functions and 3 Types
Hash 8 Classes
IO 2 Functions
Iteration 2 Functions
JSON 2 Classes, 2 Constants, 2 Functions, and 4 Types
Math 1 Class, 22 Functions, and 3 Types
Measurement 3 Functions and 2 Types
Object 8 Functions and 2 Types
Phonetic 18 Functions and 8 Types
Phonetic Algorithms 1 Function
Pluralization 1 Function
Process 1 Constant
Random 2 Classes, 5 Functions, and 5 Types
RegExp 1 Constant and 2 Functions
Serialization 2 Functions and 1 Type
Storage 1 Constant and 1 Type
String 1 Constant, 33 Functions, and 16 Types
Textualization 12 Functions and 8 Types
Time 1 Class, 17 Constants, 28 Functions, and 8 Types
Timing 1 Function
Tokenization 11 Functions and 1 Type
Type Checking 10 Functions
TypeChecking 1 Function
Unicode 16 Constants, 17 Functions, and 1 Type
Utility 1 Class
Validation 7 Constants and 5 Functions

Installation

Using npm:

npm install @technobuddha/library

Usage

Most modern build systems will now do proper tree-shaking, so you can import only the functions you need:

import { plural, summarize } from '@technobuddha/library';

plural('mouse'); // 'mice'
summarize(Number.MAX_SAFE_INTEGER); // '9.01 quadrillion'

License

The Technobuddha Library is released under the MIT license.

Documentation

Dive into the Technobuddha Library documentation

The documentation is written by the Technobuddha assisted by AI. Some of what the AI has written is good, some not so much. If you find something that is incorrect or could be improved, please raise an issue or make a pull request.

History

In one form or another, this library has been around since the later part of the 20th century. I ported my library to Typescript in 2021, version 2 brings many improvements and new features, as well as a complete rewrite of the documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors