Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

dk-e/awww

Repository files navigation

awww

A collection of utility functions to share across projects.

Installation

npm install awww

Packages:

awww/id:

ID package for generating stable IDs at runtime. Cryptographically insecure and no collision protection so really made for things that are not meant to be unique or when you need a quick id (e.g. an application invite code).

Declarations:

declare function id(length?: number, alphabet?: string): string;

Example usage:

import { id } from 'awww/id';
const randomId = id();
const randomHex = id(6, 'abcdefg01234567890');
const randomCode = id(10);

awww/prettier:

Opinionated prettier config I use across my applications. You can use it by making a .prettierrc file in your project and including the following content:

"awww/prettier"

About

πŸ€— JavaScript Utilities

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /