(NPM Package) Collection of various small helpers for javascript and typescript based projects, all tested and documented.
In Huichol, Tévari means small rocks. This library is just that, small rocks (helpers) designed to ease the development of javascript or typescript projects.
Npm:
npm install @tevari/helpers
Yarn:
yarn add @tevari/helpers
Pnpm:
pnpm install @tevari/helpers
Then import Tévari functions wherever needed 🤓
For each sections (strings, arrays, numbers, ...), there is 2 ways to use tévari helpers:
import assert from "assert";
import { StringHelpers } from "tevari";
// ...
assert(StringHelpers.plainify("Weìrd") === "Weird");
import assert from "assert";
import { stringPlainify } from "tevari";
// ...
assert(stringPlainify("Weìrd") === "Weird");
Every direct helper method are prefixed by the name of the section in singular. (ie. StringHelpers.plainify
<=> stringPlainify
).
Simple, isn't it ? 🪄