This repository contains numerous small utility packages. These packages serve various useful purposes and are written in nano ESModule without any dependencies.
Here is a brief overview of the included libraries:
tsconfig-base
: This is a foundational TypeScript configuration used for Alwatr projects.flat-string
: Theflat-string
function flattens the underlying C structures of a concatenated JavaScript string.global-this
: This TypeScript module provides a cross-platform alternative toglobalThis
namedglobalScope
. This object works across different environments, including browsers (window
), Node.js (global
), and Web Workers (self
).platform-info
: This module offers a method to identify the current platform where the script is being executed. It defines aplatformInfo
constant that contains details about the current platform.prettier-config
: These are Alwatr's shared configurations for Prettier.eslint-config
: This is Alwatr's ECMAScript Style Guide presented as shareable ESLint configurations.deep-clone
: This function allows you to clone deeply nested objects and arrays in JavaScript.nano-build
: This is a tool for building/bundling ECMAScript, TypeScript, and JavaScript libraries. It's user-friendly, requires no setup, follows best practices, has no dependencies, and uses esbuild for improved performance.type-helper
: Collection of useful typescript type helpers.wait
: Comprehensive toolkit for managing asynchronous operations.exit-hook
: A utility for registering exit handlers in Node.js.flatomise
: A utility for creating promises that can be externally resolved or rejected.async-queue
: A queue that executes async tasks in order like mutex and semaphore methodology for javascript and typescript.node-fs
: Enhanced file system operations in Node.js, including reading, writing, and handling JSON files, with both synchronous and asynchronous options.is-number
: A simple utility to check if a value is a number.parse-duration
: A simple utility to parse a duration string into milliseconds number.local-storage
:localJsonStorage
is a utility object in our TypeScript package that provides methods for interacting with the local storage in a structured and versioned manner.polyfill-has-own
: A polyfill forObject.hasOwn
.fetch
: Enhanced fetch API with cache strategy, retry pattern, timeout, helper methods and enhanced types.
For more detailed information and guidelines on how to use each package, please refer to each package's README.
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
Contributions are welcome! Please read our contribution guidelines before submitting a pull request.
This project is licensed under the AGPL-3.0 License.