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

@editorjs/helpers

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@editorjs/helpers

Utils useful for Editor.js tools development

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11K
increased by9.19%
Maintainers
0
Weekly downloads
 
Created
Source

@editorjs/helpers

Utils useful for Editor.js tools development

Installation

  npm install @editorjs/helpers

Function list

  • beautifyShortcut - Make shortcut command more human-readable
  • cacheable - Decorator which provides ability to cache method or accessor result
  • capitalize - Capitalizes first letter of the string
  • copyTextToClipboard - Copies passed text to the clipboard
  • debounce - Debouncing method
  • deepMerge - Merge two objects recursively
  • deprecationAssert - Common method for printing a warning about the usage of deprecated property or method.
  • isEmpty - True if passed variable is null/undefined/''/{}
  • notEmpty - True if passed variable is not null/undefined/''/{}
  • equals - Compares two values with unknown type
  • getValidUrl - Returns valid URL. If it is going outside and valid, it returns itself
  • isPrintableKey - Returns true if passed key code is printable (a-Z, 0-9, etc) character.
  • throttle - Returns a function, that, when invoked, will only be triggered at most once during a given window of time.
  • isBoolean - Checks if passed argument is boolean
  • isClass - Check if passed function is a class
  • isFunction - Check if passed variable is a function
  • isNumber - Checks if passed argument is number
  • isObject - Checks if passed argument is an object
  • isPromise - Check if passed object is a Promise
  • isString - Checks if passed argument is a string
  • isUndefined - Checks if passed argument is undefined
  • typeOf - Return string representation of the object type
  • getUserOS - Returns object with os name as key and boolean as value. Shows current user OS

About CodeX

CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are open for young people who want to constantly improve their skills and grow professionally with experiments in cutting-edge technologies.

🌐Join 👋TwitterInstagram
codex.socodex.so/join@codex_team@codex_team

FAQs

Package last updated on 06 Nov 2024

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