All Projects → RadLikeWhoa → helpers.js

RadLikeWhoa / helpers.js

Licence: MIT license
Small JavaScript functions for common use cases.

Programming Languages

javascript
184084 projects - #8 most used programming language
coffeescript
4710 projects

Projects that are alternatives of or similar to helpers.js

Figma Linux Font Helper
Font Helper for Figma for Linux x64 platform
Stars: ✭ 136 (+267.57%)
Mutual labels:  helper
Handlebars Helpers
Related projects
Stars: ✭ 2,024 (+5370.27%)
Mutual labels:  helper
MVPHelper
Base classes for quick and easy implementation of MVP for Android applications.
Stars: ✭ 17 (-54.05%)
Mutual labels:  helper
Blame Bird
Checks which app uses lots of space in the `Library/Caches/com.apple.bird` folder
Stars: ✭ 142 (+283.78%)
Mutual labels:  helper
Tinyconsole
📱💬🚦 TinyConsole is a micro-console that can help you log and display information inside an iOS application, where having a connection to a development computer is not possible.
Stars: ✭ 1,929 (+5113.51%)
Mutual labels:  helper
Loco Answers
Open Source Android App for answers in TRIVIA GAMES
Stars: ✭ 180 (+386.49%)
Mutual labels:  helper
Old
每天大红包 · 旧版(不再维护,仅供参考)
Stars: ✭ 1,611 (+4254.05%)
Mutual labels:  helper
libimobiledevice-glue
A library with common code used by libraries and tools around the libimobiledevice project
Stars: ✭ 46 (+24.32%)
Mutual labels:  helper
Dynamicswebapi
DynamicsWebApi is a Microsoft Dynamics 365 / Microsoft Dataverse (formerly known as Common Data Service) Web API helper library for JavaScript
Stars: ✭ 165 (+345.95%)
Mutual labels:  helper
alog
Update: use loguru instead. Simple straight logging your Python code
Stars: ✭ 38 (+2.7%)
Mutual labels:  helper
Trackable
Trackable is a simple analytics integration helper library. It’s especially designed for easy and comfortable integration with existing projects.
Stars: ✭ 143 (+286.49%)
Mutual labels:  helper
Ansible Aur
Ansible module to manage packages from the AUR
Stars: ✭ 149 (+302.7%)
Mutual labels:  helper
Jd Helper
🐑 京东日常小助手, 省时省力, 京东萌宠, 免费水果 [暂停更新]
Stars: ✭ 199 (+437.84%)
Mutual labels:  helper
Issues Helper
🤖 A GitHub Action easily helps you automatically manage issues. Welcome to try.
Stars: ✭ 140 (+278.38%)
Mutual labels:  helper
advancedPermissionHandler
This Android library is for handle running time permissions in simplest way!
Stars: ✭ 13 (-64.86%)
Mutual labels:  helper
Box
Python dictionaries with advanced dot notation access
Stars: ✭ 1,804 (+4775.68%)
Mutual labels:  helper
Libchef
🍀 c++ standalone header-only basic library. || c++头文件实现无第三方依赖基础库
Stars: ✭ 178 (+381.08%)
Mutual labels:  helper
NFlags
Simple yet powerfull library to made parsing CLI arguments easy. Library also allow to print usage help "out of box".
Stars: ✭ 44 (+18.92%)
Mutual labels:  helper
AirPodsDesktop
☄️ AirPods desktop user experience enhancement program, for Windows and Linux (WIP)
Stars: ✭ 462 (+1148.65%)
Mutual labels:  helper
Laravelmetatags
The most powerful and extendable tools for managing SEO Meta Tags in your Laravel project
Stars: ✭ 226 (+510.81%)
Mutual labels:  helper

helpers.js

A collection of small JavaScript helper functions for various use cases. All of these little snippets solve problems that are very common, but don't have a widespread decent implementation. Most functions are available as easy-to-use prototypes on their respective objects.


Number

Number.round

Rounds a number to a given precision and omits trailing 0 values.

100.51235.round(3)
100.512

String

String.base

Gets only the base of a given URL.

'https://www.twitter.com/RadLikeWhoa_'.base()
'twitter.com'

String.format

Format a string using placeholders like {0}.

'{0}, hello {1} world!'.format('Oh', 'beautiful')
'Oh, hello beautiful world!'

String.insert

Insert a string into another one at a given numerical index or a keyword.

'I am here.'.insert('in between ', 5)
'I am in between here.'

String.truncate

Truncates the string to the given length and replaces superfluous characters with the given substitute.

'This is a longer text'.truncate(15)
'This is a long…'

String.words

Count the words inside a given element. The output can be formatted using the {{count}} placeholder.

'Hello, world!'.words()
2

Functions

readingtime

Returns the estimated time to complete reading of a text in a human readable format.

readingtime(2720, 'Reading this takes {time}.', 270)
'Reading this takes about 10 minutes.'
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].