A collection of node modules for The Really Project

Buy Me A Coffee [![][tippin-me-badge]][tippin-me-url] [![Follow me][follow-me-badge]][follow-me-url] [![Version][version-badge]][version-url] [![Node version][node-version-badge]][node-version-url] [![MIT License][mit-license-badge]][mit-license-url] [![Downloads][downloads-badge]][downloads-url] [![Total downloads][total-downloads-badge]][downloads-url] [![Packagephobia][packagephobia-badge]][packagephobia-url] [![Bundlephobia][bundlephobia-badge]][bundlephobia-url] [![ci][ga-badge]][ga-url] [![codecov][codecov-badge]][codecov-url] [![Code of Conduct][coc-badge]][coc-url] > Helper functions made specifically for The Really Project. All modules are shipped in [ES Modules] and users are required to create their own CJS builds if needed, or use [esm] for bundle-less module loader. ## Table of contents - [Pre-requisites](#pre-requisites) - [Install](#install) - [Usage](#usage) - [Available modules](#available-modules) - [Deno equivalent](#deno-equivalent) - [License](#license) ## Pre-requisites - [Node.js][nodejs-url] >= 14.17.3 - [NPM][npm-url] >= 6.14.13 ([NPM][npm-url] comes with [Node.js][nodejs-url] so there is no need to install separately.) - [ES Modules] ## Install ```sh # Install via NPM $ npm i nodemod ``` ```sh # [OPTIONAL] Only install this as `devDependencies` if you do not use # any bundler or compiler for your project. Note that all modules are # exported using ES modules. See Usage section for more details. $ npm i -D esm ``` ## Usage All modules are exported using JavaScript's ES modules. Users are recommended to use [esm] to run their scripts. ```js // index.js import { html } from 'nodemod/dist/lit-ntml/index.js'; await html`

Hello, World!

`; ``` ```sh $ node -r esm index.js # Run script with `esm` to transpile ES Modules on the fly. ``` ## Available modules * [calendar] - Minimal module to compute a calendar * [deep-clone] - Simple and fast deep cloning * [delay-until] - A typical delay function but Promise based * [fetch-as] - Simple fetch helper with type resolver * [lit-ntml] - Expressive HTML Templates * [normalize-diacritics] - Remove accents/ diacritics in string * [polling-observer] - A new way of running polling function with observer pattern * [scryptify] - A stronger encryption and decryption in Node.js * [signatur] - Sign and unsign HTTP request with ease * [utc-date] - Generate UTC date with various offsets * [utc-time] - Generate UTC time with various offsets ## Deno equivalent Showing some ❤️ and support for [deno]. * [deno_mod] ## License [MIT License]( © Rong Sen Ng [typescript-url]: [nodejs-url]: [npm-url]: [node-releases-url]: [deno]: [deno_mod]: [esm]: [ES Modules]: [calendar]: /src/calendar [deep-clone]: /src/deep-clone [delay-until]: /src/delay-until [fetch-as]: /src/fetch-as [lit-ntml]: /src/lit-ntml [normalize-diacritics]: /src/normalize-diacritics [polling-observer]: /src/polling-observer [scryptify]: /src/scryptify [signatur]: /src/signatur [utc-date]: /src/utc-date [utc-time]: /src/utc-time [tippin-me-badge]: [follow-me-badge]: [version-badge]: [node-version-badge]: [mit-license-badge]: [downloads-badge]: [total-downloads-badge]: [packagephobia-badge]: [bundlephobia-badge]: [ga-badge]: [codecov-badge]: [coc-badge]: [tippin-me-url]: [follow-me-url]: [version-url]: [node-version-url]: [mit-license-url]: [downloads-url]: [packagephobia-url]: [bundlephobia-url]: [ga-url]: [codecov-url]: [coc-url]: