Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

utilsac

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

utilsac

Utility functions

  • 10.5.4
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Utility functions

Installation

npm i utilsac

utilsac

utility.js

import {
    createDebounced,
    createThrottled,
    throttledWithLast,
    createCustomRound,
    arrayWithResults,
    chainPromises,
    chainRequestAnimationFrame,
    doNTimes,
    chainPromiseNTimes,
    timeFunction,
    timePromise,
    memoizeAsStrings,
    deepCopy,
    deepAssign,
    createTemplateTag,
    bytesLengthFromString,
} from "utilsac";

typeCast.js

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

evalGlobal.js

import { evalGlobal } from "utilsac/evalGlobal.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

blobs.js

import { downloadBlob } from "utilsac/blobs.js";

About

Changelog

Changelog

License

CC0

  • fnk
  • jQuery
  • lodash
  • ramda
  • slugify

Keywords

FAQs

Package last updated on 31 Jul 2019

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc