New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aleppo

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aleppo

General node functions, useful for any project.

  • 0.0.0-beta.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-72.22%
Maintainers
1
Weekly downloads
 
Created
Source

General collection for useful node functions.

is: true or false functions

isUn(input): tests for undefined
isNull(input): tests for null
isObj(input): tests for object
isBool(input): tests for Boolean
isNum(input): tests for number
isStr(input): tests for string
isFn(input): tests for function
isSymb(input): tests for symbol
isArr(input): tests for array
isZeroLength(input): tests for zero length
isStrEmpty(input): tests if empty string
isArrEmpty(input): tests if array is empty

Generators:

Numbers:

const numbers = generators.numbers:

numbers.getRandom(min, max, type): returns random number in given range.

min, max: range number,
type: is string. By default will apply for integer random number. for arbitrary value just pass 'any'.

Getters:

getters.object(param): discovers key and prop.

param  = { foo: 'bar' };
will return key = foo and prop = bar throws error if empty.

FAQs

Package last updated on 08 May 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