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

basic-utils

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-utils

basic js utils

  • 1.5.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
18
increased by5.88%
Maintainers
1
Weekly downloads
 
Created
Source

basic-utils build status

Basic JS utils module

API

Types
isObj
  • Returns boolean
isString
  • Returns boolean
isArray
  • Returns boolean
isDate
  • Returns boolean
isRegex
  • Returns boolean
isFunction
  • Returns boolean
isNumber
  • Returns boolean
isNan
  • Returns boolean
isUndefined
  • Returns boolean
isNull
  • Returns boolean
isObjectID
  • Returns boolean
isIp
  • Returns boolean
isIp4
  • Returns boolean
isIp6
  • Returns boolean
isMac
  • Returns boolean
isFQDN
  • Returns boolean
Utils
iterateObj
  • prints object key pairs with a tilde delimiter
format
  • formats a string
deepFreeze
  • returns a recursive frozen object
serialize
  • Returns either an error object or a json serialized string
deserialize
  • Returns either an error object or an js object deserialized from a json string
FileSystem
dirExists
  • Returns boolean if directory exists
fileExists
  • Returns boolean if file exists
rmDirSync
  • recursively deletes a directory sync
rmDir
  • recursively deletes a directory async
mkDirSync
  • recursively makes directory sync
mkDir
  • recursively makes directory async
Todo
  • improve docs
  • add more tests

FAQs

Package last updated on 13 May 2016

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