All Projects → GrosSacASac → utilsac

GrosSacASac / utilsac

Licence: CC0-1.0 license
Utility functions

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to utilsac

web-mqtt-client
A better MQTT API for the browser
Stars: ✭ 48 (+269.23%)
Mutual labels:  utility
hasmail
Simple tray icon for detecting new email on IMAP servers
Stars: ✭ 29 (+123.08%)
Mutual labels:  utility
discord-paginationembed
A pagination utility for MessageEmbed in Discord.JS
Stars: ✭ 93 (+615.38%)
Mutual labels:  utility
Timesheet-Hero
Small utility to keep track of your time
Stars: ✭ 31 (+138.46%)
Mutual labels:  utility
chronoman
Utility class to simplify use of timers created by setTimeout
Stars: ✭ 15 (+15.38%)
Mutual labels:  utility
whatsapp-jpeg-repair
A handy tool to fix jpeg files downloaded from WhatsApp and prevent errors upon opening these files in Adobe Photoshop.
Stars: ✭ 30 (+130.77%)
Mutual labels:  utility
pytest-stress
A Pytest plugin that allows you to loop tests for a user defined amount of time.
Stars: ✭ 39 (+200%)
Mutual labels:  utility
copy-anything
An optimised way to copy'ing (cloning) an Object or Array. A small and simple integration
Stars: ✭ 19 (+46.15%)
Mutual labels:  deep-copy
vstutils
Small framework for easy generates web-applications (SPA or Single Page Application).
Stars: ✭ 39 (+200%)
Mutual labels:  utility
suspend
suspend/resume a list of processes in Windows
Stars: ✭ 23 (+76.92%)
Mutual labels:  utility
shelvery-aws-backups
Automating EBS RDS EC2 backups on lambda
Stars: ✭ 31 (+138.46%)
Mutual labels:  utility
steam go
Simple steam auth util in golang
Stars: ✭ 22 (+69.23%)
Mutual labels:  utility
js-utils
🔥 A collection of some JavaScript utility functions for everyday use
Stars: ✭ 16 (+23.08%)
Mutual labels:  utility
aws-docker-deploy
Scripts and templates for deploying docker containers to aws / elastic beanstalk
Stars: ✭ 18 (+38.46%)
Mutual labels:  utility
laika
Log, test, intercept and modify Apollo Client's operations
Stars: ✭ 99 (+661.54%)
Mutual labels:  utility
catsay
🐱 💻 like cowsay but cats
Stars: ✭ 33 (+153.85%)
Mutual labels:  utility
UnitySettings
Runtime debugging menu (like setting on Android) for Unity.
Stars: ✭ 26 (+100%)
Mutual labels:  utility
FastDMG
Fast, no-nonsense disk image mounting for macOS
Stars: ✭ 72 (+453.85%)
Mutual labels:  utility
black hole flutter
🛠 A package absorbing all Flutter utility functions, including extension functions and commonly used widgets
Stars: ✭ 18 (+38.46%)
Mutual labels:  utility
eth-rpc-errors
Ethereum RPC Errors
Stars: ✭ 78 (+500%)
Mutual labels:  utility

utilsac

Utility functions

Installation

npm i utilsac

Usage

The source code is the documentation.

utility.js

import {
    createDebounced,
    createThrottled,
    throttledWithLast,
    chainPromiseNTimes,
    chainPromises,
    somePromisesParallel,
    chainRequestAnimationFrame,
    decorateForceSequential,
    doNTimes,
    timeFunction,
    timePromise,
    memoizeAsStrings,
    createTemplateTag,
    bytesLengthFromString,
    assignSelected,
} from "utilsac";

// deno
import {
    createDebounced,
    createThrottled,
    throttledWithLast,
    chainPromises,
    somePromisesParallel,
    chainRequestAnimationFrame,
    doNTimes,
    chainPromiseNTimes,
    timeFunction,
    timePromise,
    memoizeAsStrings,
    createTemplateTag,
    bytesLengthFromString,
} from "https://unpkg.com/utilsac/utility.js";

deep.js

Consider structuredClone if you need deepCopy

import {
    deepCopy,
    deepCopyAdded,
    deepAssign,
    deepAssignAdded,
    deepEqual,
    deepEqualAdded,
    deepDifference,
} from "utilsac/deep.js";

// deno
import {
    deepCopy,
    deepCopyAdded,
    deepAssign,
    deepAssignAdded,
    deepEqual,
    deepEqualAdded,
    deepDifference,
} from "https://unpkg.com/utilsac/deep.js";

deepEqual example

const personA = { email: '[email protected]', name: { firstname: 'James', lastname: 'William' }};

const personB = { email: '[email protected]', name: { firstname: 'James', lastname: 'William' }};

deepEqual(personA, personB); //  true

typeCast.js

import {
    stringFromArrayBuffer,
    arrayBufferFromBlob,
    stringFromBlob,
    stringFromArray,
    setFromArray,
    mapFromObject,
} from "utilsac/typeCast.js";

// deno
import {
    deepCopy,
    deepCopyAdded,
    deepAssign,
    deepAssignAdded,
    deepEqual,
    deepEqualAdded,
    deepDifference,
} from "https://unpkg.com/utilsac/typeCast.js";

browserUtility.js

import { 
    evalGlobal,
    downloadBlob,
} from "utilsac/browserUtility.js";
evalGlobal(`window.x = 2 ** 10`);

After the Promise is resolved the code has executed in global scope.

evalGlobal(`
import sin form "./x.js";
window.x = sin(Math.PI)
`, `module`);

Use optional second argument with module to be able to use static imports

About

Changelog

Changelog

License

CC0

Related

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].