All Projects → Gherciu → sagittarius

Gherciu / sagittarius

Licence: MIT License
🎯 A set of javascript most used utils📑

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects
CSS
56736 projects

Projects that are alternatives of or similar to sagittarius

utils
⚡ A collection of common functions but with better performance, less allocations and less dependencies created for Fiber.
Stars: ✭ 21 (-50%)
Mutual labels:  utils, helpers
urley
📦 An easy cross-platform utility library to work with URLs in Javascript.
Stars: ✭ 14 (-66.67%)
Mutual labels:  utils, helpers
utils.js
👷 🔧 zero dependencies vanilla JavaScript utils.
Stars: ✭ 14 (-66.67%)
Mutual labels:  utils, random
Rails stuff
Collection of useful modules for Rails.
Stars: ✭ 110 (+161.9%)
Mutual labels:  utils, helpers
mUtils
JavaScript常用方法
Stars: ✭ 59 (+40.48%)
Mutual labels:  utils, js-utils
Prosemirror Utils
⚒ Utils library for ProseMirror
Stars: ✭ 241 (+473.81%)
Mutual labels:  utils, helpers
Smart-Inspector
Fluent re-take on Unity Inspector UX. Packed with QoL improvements.
Stars: ✭ 680 (+1519.05%)
Mutual labels:  utils, helpers
react-semantic-render
Semantic helper components for rendering content with React.
Stars: ✭ 13 (-69.05%)
Mutual labels:  utils, helpers
util
封装了一些Java常用的功能
Stars: ✭ 19 (-54.76%)
Mutual labels:  utils, random
CommonUtils
A collection of useful Android classes
Stars: ✭ 37 (-11.9%)
Mutual labels:  utils
markdown-utils
Convert plain text into snippets of markdown.
Stars: ✭ 28 (-33.33%)
Mutual labels:  utils
jPublic
在我们开发项目的时候,无论项目规模大小,在所难免会写一些工具型函数来解决一些问题,随着项目开发和维护的时间越来越长,这些工具型函数会越来越多,同时还会穿插在各个项目的各模块或者文件当中,使得项目变的越来越臃肿,也不方便复用和维护。这时我们就会提取出一个类似的工具库或者基础库作为项目基础依赖,在项目中重复利用起来。 为了这样的工具库或类库更易扩展、易维护、易复用和更加稳定,我们就需要更好的去管理完善工具库。
Stars: ✭ 39 (-7.14%)
Mutual labels:  utils
JavaInterview
JVM、JUC(高并发)、集合、计算机网络、数据库、MySql、Redis、、工作流(Activiti)、规则引擎(Drools)、Spring、SpringCloud、Mybatis、Git、Docker、Utils、Linux
Stars: ✭ 179 (+326.19%)
Mutual labels:  utils
hey-utils
js-utils
Stars: ✭ 23 (-45.24%)
Mutual labels:  utils
tdesign-common
TDesign style/utils shared by multiple frameworks repo.
Stars: ✭ 70 (+66.67%)
Mutual labels:  utils
type-predicates
A comprehensive collection of type-guards, type assertions and related utils
Stars: ✭ 44 (+4.76%)
Mutual labels:  utils
color
A library of well-tested helper methods for working with colors.
Stars: ✭ 13 (-69.05%)
Mutual labels:  random
Assembly-Lib
A 16-bits x86 DOS Assembly library that provides many useful functions for developing programs. It has both VGA grapics functions as well as general purpose utilities. The main purpose of this library was to be able to implement simple DOS games (in Assembly) using VGA (320x200, 256 colors) display.
Stars: ✭ 36 (-14.29%)
Mutual labels:  utils
clearbit-go
Go bindings for Clearbit
Stars: ✭ 12 (-71.43%)
Mutual labels:  utils
keeporsweep.net
💻🔀🗑️ Randomly declutter your digital life!
Stars: ✭ 54 (+28.57%)
Mutual labels:  random

sagittarius

A set of javascript most used utils.

Site | Getting Started | API | Blog

GitHub Multipack

Getting started.

  • Install: npm i sagittarius-core
const { random, isEmpty } = require('sagittarius-core')
// Or install needed utils separately
// const random =  require('sagittarius-random')

// check if argument is empty
console.log(isEmpty({})) // true
// get a random nr
console.log(random(12, 21))

Or use via cdn:

<!--index.html-->
<script src="https://cdn.jsdelivr.net/npm/sagittarius-core@latest/build/index.js"></script>
<script>
  // check if argument is empty
  console.log(sagittarius.isEmpty({ a: 21 })) // false
  // get a random nr
  console.log(sagittarius.random(12, 21))
</script>

See more utils in description below

Data generation

  • random: Random number generation from range
  • uniqueId: Generates a unique ID. If prefix is given, the ID is appended to it.
  • range: Creates an array of numbers (positive and/or negative) progressing from start up to, but not including, end. A step of -1 is used if a negative start is specified without an end or step. If end is not specified, it's set to start with start then set to 0.

Data validation

  • isEmpty: Check if provided argument is empty
  • has: Checks if path is a direct property of provided argument.

Data transformation

  • toNumber: Transform provided argument to number
  • toPath: Transform provided argument to a property path array

Data sorting

  • uniq: Filter and return uniq values from an array
  • get: Gets the value at path of provided argument. If the resolved value is undefined, the defaultValue is returned in its place.
  • difference: Compare 2 arguments and return the difference. The order and references of result values are determined by the first argument.

Data manipulation

  • debounce: Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.
  • set: Sets the value at path of provided argument. If a portion of path doesn't exist, it's created. Return true or false if value is set with success.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Or you can sponsor via Open Collective

Open Collective

Author

@Gherciu/sagittarius © GHERCIU, Released under the MIT License.
Authored and maintained by GHERCIU with help from contributors (list).

If you like this repository star and watch👀 on GitHub

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].