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

zeelib

Package Overview
Dependencies
Maintainers
1
Versions
370
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zeelib

A small lib of FP, Node, and DOM utils.

  • 0.4.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
514
decreased by-27.4%
Maintainers
1
Weekly downloads
 
Created
Source

zeelib

A small lib of FP, Node, and DOM utils.

Changes:

  • 0.4.0 -- breaking -- no longer require('zeelib').default, just require('zeelib')
  • 0.2.0 -- breaking -- all functions now in top level
    • (No more import { fp } from 'zeelib' to use zipWith, just import { zipWith } from 'zeelib').

Just a load of small utilities.

There's a full list at the bottom of this file.

Documentation is mostly just function names. Sorry.

Usage:

import z from 'zeelib'

z.open('http://zacanger.com')
if (z.isEven(process.argv[2])) // do things
z.camelCaseToLispCase('thisString')

You can also import individual functions.

import c from 'zeelib/dist/colorize'

console.log(c.bold(c.blue('HELLO THERE')))

If you're using require with individual files you'll need to use default:

const c = require('zeelib/dist/colorize').default

License

WTFPL

Contributing

  • Please run npm test.
  • If you can, please add a test.
  • Please add your thing in these places:
    • src/index.js in the appropriate place
    • The full list below
  • Make sure you run npm run build

Full list:

dom

  • getCookie
  • getHeight
  • getIsBrowser
  • getReferrer
  • getScrollBarWidth
  • getWidth
  • restoreScrollPosition
  • scrollTop

keycodes

  • getKeyCodes

regex, string utils, etc.

  • addNewlines
  • alphaNumericOnly
  • camelCaseToLispCase
  • camelCaseToSnakeCase
  • capitalizeFirstChar
  • collapseWhitespace
  • combineRegex
  • cssToJson
  • escapeHtml
  • fixWindowsSlashes
  • getComplimentaryColors
  • getRandomHex32
  • getRandomString
  • getUid4
  • getUid8
  • hexRegex
  • inlineString
  • isAlphaNumeric
  • isEmoji
  • isEmptyString
  • isHexBased
  • isMobileOrTablet
  • isStringSomewhereInArray
  • isValidEmail
  • isValidHex
  • lightenOrDarken
  • lispCaseToCamelCase
  • minifyString
  • newlinesToSpaces
  • normalizeClassname
  • normalizeColor
  • normalizeText
  • randomColor
  • removeNewlines
  • removeNonAlpha
  • removeNonAlphaNumeric
  • removeNonNumeric
  • removeNumeric
  • removeTags
  • removeWhitespace
  • rot13
  • snakeCaseToCamelCase
  • stripPunctuation
  • trimHash
  • trimSpaces
  • unescapeHtml

node

  • base64BufferDec
  • base64BufferEnc
  • colorize
  • dir
  • findPort
  • getNodeModules
  • getTerminalColumns
  • getTerminalRows
  • getTerminalSize
  • getUserHome
  • hasColor
  • isInstalled
  • logWithInfo
  • open
  • readJson
  • readJsonSync
  • termPrompt
  • tinyRouter
  • writeError
  • writeJson
  • writeJsonSync

fp utils

  • all
  • and
  • any
  • apply
  • compose
  • concat
  • concatMap
  • curry
  • curry2
  • curry3
  • curry4
  • drop
  • each
  • elem
  • filter
  • foldl
  • foldl1
  • foldr
  • foldr1
  • getFunctionArguments
  • head
  • id
  • init
  • invoke
  • last
  • length
  • lines
  • map
  • memoize
  • mix
  • not
  • notElem
  • once
  • or
  • pair
  • pipe
  • pluck
  • propEq
  • reduce
  • replicate
  • reverse
  • span
  • splitAt
  • tail
  • take
  • takeWhile
  • unfold
  • unlines
  • unwords
  • unzip
  • unzip3
  • words
  • zip
  • zip3
  • zipThen
  • zipWith
  • zipWith3

types

  • isArray
  • isArrayLike
  • isBoolean
  • isDate
  • isDefined
  • isDomElement
  • isEmpty
  • isEven
  • isFloat
  • isFunction
  • isInteger
  • isJson
  • isNan
  • isNegative
  • isNodeList
  • isNull
  • isNumber
  • isObject
  • isObjectEqual
  • isOdd
  • isPositive
  • isPow2
  • isPrimitive
  • isPromise
  • isRegExp
  • isString
  • isType
  • isUndefined
  • objectToString
  • toType
  • typeOf

misc

  • chunk
  • cloneWithout
  • copy
  • copyWithout
  • deepCopy
  • doubleUntil
  • dropWhere
  • filterFloat
  • findWhere
  • getBrokenImage
  • getKeyByValue
  • getNiceDate
  • getTransparentGif
  • greatestCommonDivisor
  • invoker
  • isObjectEmpty
  • leastCommonMultiple
  • leftPad
  • lesser
  • lexSort
  • logWithTimestamp
  • maximum
  • maybeArgs
  • minimum
  • nco
  • noSwitch
  • objectAssign
  • objectClone
  • objectFromEntries
  • objectInherit
  • product
  • range
  • reverseDigits
  • shallowCopy
  • sleep
  • splitStringOn
  • sum
  • tap
  • throwError
  • timeTest
  • transpose
  • transposeFlat
  • tryExecNTimes
  • unless
  • xor

Keywords

FAQs

Package last updated on 20 Feb 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