
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@leaflink/front-end-utils
Advanced tools
A common utility library for usage across LeafLink's front-end applications.
npm i @leaflink/front-end-utils
Import the util(s) you need, and go.
import { obfuscateText } from '@leaflink/front-end-utils';
src.Using a named export instead of a default export is recommended.
A named export ensures the function name is properly reflected in the generated docs. While using a default export will still work, we'll just see default() displayed instead.
src/index.ts (along with any types).export { obfuscateText, ObfuscateTextOptions } from './obfuscateText.js';
entryPoints in typedoc.json to include it in the side nav.npm run docs to start a local dev servernpm run docs:build to build for productionnpm run docs:preview to locally preview the production buildTo run tests, there's multiple npm scripts available to you:
npm run test - Run all tests in watch mode.npm run test <file> - Run matching spec file(s) quickly and watch for changes.Peer dependencies are specific dependencies that a package requires to work correctly, but expects the consumer of the package to provide. In other words, they are dependencies that the package relies on, but are not bundled with the package itself.
@leaflink/front-end-utils does not yet require peer deps at this time. This may change if a util has to lean on a dependency like lodash-es.
These peer dependencies will need to be installed separately by the consumer of the package, ensuring that the correct versions are used to maintain compatibility and avoid conflicts with other dependencies in the project.
This library provides functions that help other developers while also promoting consistency and modularity across front-end projects. If there's a utility you'd like to add that solves a common problem or captures a pattern other front-end projects would benefit from, it sounds like a great fit! If it's moreso tied to the specifics of a single app, it should likely remain downstream.
These docs are generated using typedoc, converted to markdown with typedoc-plugin-markdown, and then tailored for vitepress via typedoc-vitepress-theme.
typedoc.json notes:
index.md is currently sourced from README.mdentryPoints defined indocsRoot (typedoc-vitepress-theme) matches out to correctly link to the generated pages.Note: The options present in typedoc.json are a combination of configurations for typedoc-plugin-markdown, typedoc-vitepress-theme, and core typedoc options.
testing
FAQs
Common front-end utilities
The npm package @leaflink/front-end-utils receives a total of 128 weekly downloads. As such, @leaflink/front-end-utils popularity was classified as not popular.
We found that @leaflink/front-end-utils demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.