Socket
Socket
Sign inDemoInstall

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


Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

basic-utils

Current Version dependency Status devDependency Status Build Status Coveralls

Basic JS utils module

API

Type checking returns boolean
  • isObj
  • isString
  • isArray
  • isDate
  • isRegex
  • isFunction
  • isNumber
  • isNan
  • isUndefined
  • isNull
  • isObjectID
  • isIp
  • isIp4
  • isIp6
  • isMac
  • isFQDN
  • isInt8
  • isUint8
  • isInt16
  • isUint16
  • isInt32
  • isUnint32
  • isAscii
  • isError
  • isRegexString
  • isDateString
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 a js object deserialized from a json string
FileSystem
isDir
  • Returns boolean if directory exists
isFile
  • 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 08 Apr 2017

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