@jsfns/web
v3.0.0
Published
Simple, no dependency, JS utility functions for use in a browser environment
Maintainers
Readme
@jsfns/web
@jsfns/web documentation
This is a collection of simple, no dependency, JavaScript snippets with the aim of making it easier to work with vanilla JavaScript in the browser.
Available methods
@jsfns/core
Searching for more basic, environment agnostic JavaScript methods? Check out: @jsfns/core
ES version support
These packages use modern JavaScript with no bundled polyfills or fallbacks. If you need to support older runtimes, add polyfills through your build pipeline (Babel, core-js, etc.) — most are injected automatically. Keeping the library polyfill-free makes it leaner and more future-proof, since modern browsers and Node versions already cover the vast majority of features.
Installation
npm i @jsfns/webyarn add @jsfns/webpnpm i @jsfns/webbun add @jsfns/webUsage
// JS + MJS Modules
import { append } from '@jsfns/web/append';
append(document.body, '<span>Appended content</span>');Something missing?
Questions, bugs, or ideas for new functionality? Open an issue, or submit a pull request with your contribution.
