All Projects โ†’ sharynjs โ†’ sharyn

sharynjs / sharyn

Licence: MIT license
๐ŸŒน Sharyn โ€“ A collection of JavaScript / TypeScript packages that make your life easier and reduce your boilerplate code

Programming Languages

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

Projects that are alternatives of or similar to sharyn

aimscroll
๐Ÿน Painless utility libary to handle scroll positions and methods in react
Stars: โœญ 12 (-60%)
Mutual labels:  utility, react-hooks
google-place-autocomplete
๐Ÿ† Best practice with Google Place Autocomplete API onย React
Stars: โœญ 68 (+126.67%)
Mutual labels:  react-hooks
flhooks
React like Hooks implementation for Flutter.
Stars: โœญ 38 (+26.67%)
Mutual labels:  react-hooks
grizzly
Extra utilities for Bear ๐Ÿป
Stars: โœญ 20 (-33.33%)
Mutual labels:  utility
east-store
east-store is a state manager with easiest api that based hooks and immer.
Stars: โœญ 18 (-40%)
Mutual labels:  react-hooks
leak
Show info about package releases on PyPI.
Stars: โœญ 15 (-50%)
Mutual labels:  utility
tableize
Turn lists into tables with ease
Stars: โœญ 12 (-60%)
Mutual labels:  utility
tracked
Header-only C++17 library enables to track object instances with varied policies and gives you to control exceptions on policy rule break.
Stars: โœญ 12 (-60%)
Mutual labels:  utility
mik
The Move to Islandora Kit is an extensible PHP command-line tool for converting source content and metadata into packages suitable for importing into Islandora (or other digital repository and preservations systems).
Stars: โœญ 32 (+6.67%)
Mutual labels:  utility
Reason-react-hooks
๐Ÿงถ Some hooks in ReasonML for reason-react that can be useful
Stars: โœญ 14 (-53.33%)
Mutual labels:  react-hooks
react-use-storage
React Hook to handle local and session storage
Stars: โœญ 18 (-40%)
Mutual labels:  react-hooks
style-hook
use css in js with react hook.
Stars: โœญ 16 (-46.67%)
Mutual labels:  react-hooks
gut
๐Ÿฑ yet another collection of go utilities & tools
Stars: โœญ 24 (-20%)
Mutual labels:  utility
react-cool-form
๐Ÿ˜Ž ๐Ÿ“‹ React hooks for forms state and validation, less code more performant.
Stars: โœญ 246 (+720%)
Mutual labels:  react-hooks
i2c-exp-driver
Driver to program I2C based Onion Expansions
Stars: โœญ 33 (+10%)
Mutual labels:  utility
react-with-threejs-example
An example project integrating React with three.js
Stars: โœญ 27 (-10%)
Mutual labels:  react-hooks
OP1GO
Ultraportable backups for Teenage Engineering's OP-1
Stars: โœญ 34 (+13.33%)
Mutual labels:  utility
kyanite
A small purely functional library of curried functions, with great piping possibilities!
Stars: โœญ 26 (-13.33%)
Mutual labels:  utility
Windows10Tools
Tools for Windows 10
Stars: โœญ 45 (+50%)
Mutual labels:  utility
react-antd-admin
ๅŸบไบŽvite2.x + react17.x + typescript4.x + antd4.x + react-router6.x + mobx6.x็ผ–ๅ†™็š„ไธ€ๆฌพ็ฎ€ๅ•้ซ˜ๆ•ˆ็š„ๅ‰ๅŽ็ซฏๅˆ†็ฆป็š„ๆƒ้™็ฎก็†็ณป็ปŸ
Stars: โœญ 140 (+366.67%)
Mutual labels:  react-hooks
Sharyn logo

๐ŸŒน Sharyn

Sharyn is a collection of JavaScript / TypeScript packages that make your life easier and reduce your boilerplate code.

Note: I have ported the most useful of those packages over to my new repository V1V2.

๐Ÿ’ฏ General

  • @sharyn/util โ€“ Lodash-like utils:

    • between โ€“ Tests if a value is between two bounds
    • cycle โ€“ Cycles between multiple values
    • either โ€“ Tests equality with multiple values
    • exists โ€“ Returns true if not null or undefined
    • global โ€“ Functions to create and access global variables
    • ifs โ€“ An if, else if, else if... else util
    • inlineThrow โ€“ To throw in an expression
    • invoke โ€“ A self invoking function util
    • swit โ€“ An inline and less verbose switch
    • toggle โ€“ Toggles between two values
    • tryCatch โ€“ An inline try - catch - finally
    • wait โ€“ A Promise-based delay
  • @sharyn/scripts โ€“ Helpers to write "NPM scripts" in a JavaScript file

  • @sharyn/tags โ€“ No-op ES6 template string tags to enable syntax highlighting in editors:

    • css โ€“ For CSS
    • html โ€“ For HTML
  • @sharyn/nanoid โ€“ A Nano ID default configuration

  • @sharyn/actions โ€“ Flux Standard Actions creator functions

  • @sharyn/chakra-next โ€“ Next Link applied to Chakra UI components

โš›๏ธ React

๐ŸŒ Web

  • @sharyn/browser โ€“ Helpers for code that runs in the browser:

    • clearCaches โ€“ Clears all the service worker caches
    • getFormData โ€“ Gives you the form data as a plain object

๐Ÿ’ป Development

Getting Started

Depending on your needs, you can install individual modules, like @sharyn/util.swit, a group of modules, like @sharyn/util, or the whole library. If you want to install everything, run:

npm i sharyn && npm i --save-dev sharyn-dev
# or
yarn add sharyn && yarn add --dev sharyn-dev

This will install sharyn in your dependencies and sharyn-dev in your devDependencies.

If you use sharyn/react-hooks or sharyn/react-router which are included, you will need to install react and react-router too. They are not listed as peerDependencies to avoid noise in projects that want to use sharyn without React.

Imports

And depending on what packages you chose to install, you have different ways to import or require a module:

// If you installed an individual package (all lowercase)
import swit from '@sharyn/util.swit'

// If you installed a group of modules like '@sharyn/util'
import swit from '@sharyn/util/swit'
import { swit } from '@sharyn/util'

// If you installed the whole 'sharyn' library
import swit from 'sharyn/util/swit'
import { swit } from 'sharyn/util'

Note: TypeScript users, you need your esModuleInterop set to true if you want to import the default exports without having to use the * syntax.

Credits

By Jonathan Verrecchia (verekia) Github โ€ข Twitter โ€ข Website โ€“ MIT License

Sharyn is a reference to one of my favorite metalcore songs, Rose of Sharyn by Killswitch Engage.

Rose illustration by tiaesther_4360

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