awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
phuocng avatar

phuocng/1loc

0
View on GitHub↗
6,738 stars·516 forks·MDX·MIT·13 viewsphuoc.ng/collection/1-loc↗

1loc

1loc is a JavaScript utility library and multifaceted toolkit providing a collection of single-line functions for common mathematical, string, date, and geometric operations. It functions as a set of functional programming helpers and data validation predicates designed to perform atomic transformations and validations.

The project includes a geometry math library for calculating distances, angles, and spatial overlaps between points and rectangles, alongside a text manipulation library for casting, capitalizing, and analyzing string content.

The toolkit covers broader capability areas including numeric property validation, temporal manipulation for formatting and date range verification, and DOM inspection tools for verifying the containment and overlap of UI elements. It also provides general mathematical utilities for computing sequences and averages.

Features

  • JavaScript Utility Libraries - A comprehensive collection of single-line helper functions for common math, date, and string operations in JavaScript.
  • Functional Programming - Provides a set of small pure functions for atomic data transformations and functional validations.
  • Math and Geometry - Implements a geometry library for calculating distances, angles, and spatial overlaps.
  • Text and String Utilities - Ships tools for casting values into arrays and modifying the capitalization of text strings.
  • Date and Time Libraries - Provides utilities for formatting date and time values and calculating temporal differences.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI
  • Primitive Type Converters - Includes utilities for transforming values between raw strings, numbers, and other primitive types.
  • Text String Manipulation Utilities - Offers a suite of tools for casting, capitalizing, and analyzing string content.
  • Geometric Calculations - Calculates distances, angles, and spatial overlaps between points and rectangles.
  • Coordinate Distance Calculators - Calculates distances and intersections between points and bounding rectangles in a 2D coordinate system.
  • Data Validation Predicates - Provides a toolkit of predicates for verifying numeric properties, date ranges, and string patterns.
  • Numeric Property Validators - Implements predicates to verify numeric properties such as parity, primality, and signs.
  • Scalar Mathematical Utilities - Provides basic numeric computations including factorials, Fibonacci numbers, and averages.
  • Pure Functional Logic Implementations - Implements logic using stateless, deterministic functions to ensure outputs depend solely on inputs.
  • Compact One-Liners - Implements a vast library of utilities as concise single-line functions to minimize boilerplate code.
  • Predicate-Based Validations - Provides validation utilities that use boolean predicates to verify numeric properties and date ranges.
  • Input Format Validations - Implements validation logic to verify that numeric and string inputs meet specific criteria.
  • Array Manipulation Utilities - Provides tools for converting values to arrays and detecting duplicate entries within collections.
  • Calendar Property Validations - Includes predicates to verify if a date is today, falls on a weekend, or belongs to a specific year.
  • Regular Expression Validations - Employs regular expression patterns to validate text content and identify specific character sets.
  • Content Analysis - Analyzes string content to determine if it contains only digits, ASCII characters, or letters.
  • Element Positioning Utilities - Provides helpers to determine containment and boundary overlap between UI elements.
  • UI Inspection Utilities - Offers tools to programmatically verify the containment and overlap of UI elements.
  • Star history

    Star history chart for phuocng/1locStar history chart for phuocng/1loc

    How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

    Frequently asked questions

    What does phuocng/1loc do?

    1loc is a JavaScript utility library and multifaceted toolkit providing a collection of single-line functions for common mathematical, string, date, and geometric operations. It functions as a set of functional programming helpers and data validation predicates designed to perform atomic transformations and validations.

    What are the main features of phuocng/1loc?

    The main features of phuocng/1loc are: JavaScript Utility Libraries, Functional Programming, Math and Geometry, Text and String Utilities, Date and Time Libraries, Primitive Type Converters, Text String Manipulation Utilities, Geometric Calculations.

    What are some open-source alternatives to phuocng/1loc?

    Open-source alternatives to phuocng/1loc include: arasatasaygin/is.js — is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether… jashkenas/underscore — Underscore is a JavaScript utility library providing a suite of functional programming and data manipulation helpers.… reasonml/reason — Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web… lodash/lodash — Lodash is a JavaScript utility library and data manipulation toolkit. It provides a collection of modular functions… locutusjs/locutus — Locutus is a multi-language utility library and polyfill collection written in TypeScript. It provides a comprehensive… oneuijs/you-dont-need-jquery — This project is a reference guide and collection of implementation patterns for replacing legacy libraries with native…

    Open-source alternatives to 1loc

    Similar open-source projects, ranked by how many features they share with 1loc.
    • arasatasaygin/is.jsarasatasaygin avatar

      arasatasaygin/is.js

      9,078View on GitHub↗

      is.js is a JavaScript validation library and data type checker. It provides a suite of utilities to verify whether variables are primitives, arrays, functions, or specific object types. The project allows for the implementation of custom validation logic and the use of naming namespaces to override default rules and regular expressions. It covers a broad range of validation capabilities, including numeric arithmetic properties, date and time analysis for relative and absolute ranges, and string format verification for patterns such as emails, URLs, and IP addresses. The library also includes

      JavaScript
      View on GitHub↗9,078
    • jashkenas/underscorejashkenas avatar

      jashkenas/underscore

      27,345View on GitHub↗

      Underscore is a JavaScript utility library providing a suite of functional programming and data manipulation helpers. It serves as a framework for transforming data collections, composing functions, managing objects, and performing precise data type validation without modifying core language prototypes. The project includes a functional programming toolkit designed to control function execution timing and behavior through techniques such as debouncing, throttling, and partial application. It also provides a dedicated object manipulation utility for cloning, merging, picking, and omitting prop

      JavaScript
      View on GitHub↗27,345
    • reasonml/reasonreasonml avatar

      reasonml/reason

      10,313View on GitHub↗

      Reason is a strongly typed functional language and multi-target compiler designed to produce either JavaScript for web environments or native machine code for operating systems. It serves as an OCaml-compatible language that shares an abstract syntax tree with OCaml, providing a practical syntax for the OCaml ecosystem. The project functions as a type-safe frontend language, incorporating JSX support to build user interfaces through structural elements that translate into type-safe function calls. It enables deep integration with the JavaScript ecosystem, allowing the use of existing librarie

      OCamljavascriptocamlprogramming-language
      View on GitHub↗10,313
    • lodash/lodashlodash avatar

      lodash/lodash

      61,235View on GitHub↗

      Lodash is a JavaScript utility library and data manipulation toolkit. It provides a collection of modular functions for transforming, filtering, and validating arrays, objects, strings, and numbers. The project functions as a functional programming toolkit, offering capabilities for function composition, currying, and lazy evaluation. It includes mechanisms for execution control, such as debouncing and throttling, to manage the timing and frequency of function invocations. The library covers a broad surface of data operations, including deep cloning and merging of complex nested structures,

      JavaScriptjavascriptlodashmodules
      View on GitHub↗61,235
    See all 30 alternatives to 1loc→