cd-common
v0.13.2
Published
Common utilities
Downloads
14
Readme
Common
Utility functions and common data used in CareerDean. Some functions are meant to be used in the browser (With Browserify or Webpack).
Installation
npm install cd-common
Utility Functions
- addApostrophe
- buildCommunityKey
- buildObject
- capitalize
- compactObject
- deep
- easingPattern
- emptyFunction
- escapeForRegex
- extractStopwords
- firstWord
- getHTML
- getLinks
- getTeaser
- hasSameProperties
- highlight
- idEquals
- isEmail
- isObjectId
- IsomError
- isURL
- isValidJSON
- objectIdsToStrings
- parseJSON
- permute
- pluralize
- pushUnique
- randomGarbage
- randomString
- removeHTML
- removeNewlines
- removeTrailingSlash
- sanitizeUrl
- shortHeadline
Browser-only Functions
- getTopOffset
- openPopup
- selectElementContents
- smoothScroll
Instances
- emitter
Stopwords
- stopwordsUrl
- stopwordsAll
Regexes
- emailRegex
- urlRegex
- objectIdRegex
Authors
- David Oliveros (d-oliveros)
- Antonio Sandoval (archr)
- Alejandro Cavazos (alexkvazos)