open-index/open-npm huggingface dataset:
npm package: @mp3martin/page-loading-custom-personal
Description: Next.js page loading wrapper. Made for personal use, but you can use it.
Author: MP3Martin
Latest version: 7.1.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

# page-loading-custom-personal
  Next.js page loading wrapper. Made for personal use, but you can use it too. This package still requires setup, you can not just wrap the entire project inside this. This is for the visuals only, you need to use [next/dynamic](https://nextjs.org/docs/advanced-features/dynamic-import) for the actual loading.

## Installation

```
yarn add @mp3martin/page-loading-custom-personal
```

## Import

```js
import { PageLoading } from '@mp3martin/page-loading-custom-personal';
```
npm package: @mpact/mulsid
Description: Mini Unique Lexicographically-Sortable IDs
Author: Mitchell Adair
Latest version: 0.1.0

# MULSID
Mini Unique Lexicographically Sortable ID. A short (10 character) ID for improved database efficiency in inserts and storage. MULSID is not suitable certain use-cases, as it makes a compromise on randomness to favor shorter ID length.

## About

You can read more about MULSID, how it works, and what it is useful for in [this blog post](https://mpact.llc/blog/mini-unique-lexicographically-sortable-id). Check out [the demo](https://mulsid.mpact.llc) to see MULSID in action.

## Install

### NPM
```sh
npm install @mpact/mulsid
```

### Bun
```sh
bun add @mpact/mulsid
```

### Deno
```sh
deno add jsr:@mpact/mulsid
```

## Usage

To generate a random MULSID, you can import and use the `mulsid` function

```ts
import { mulsid } from "@mpact/mulsid";

const id = mulsid() // 3Ra1dnMrqS
```

You can also guarantee a monotonically increasing ID by using the `monotonicMULSID` function

```ts
import { monotonicMULSID } from "@mpact/mulsid";

const id1 = monotonicMULSID(); // 3Ra1iMP4L5
const id2 = monotonicMULSID(); // 3Ra1iMP4L6
```

You can also determine the time the MULSID was generated within 9 milliseconds using the `decodeTime` function

```ts
import { mulsid, decodeTimestamp } from "@mpact/mulsid";

const id = mulsid(0); // 0000000SeM
const time = decodeTimestamp(id); // 0

const id2 = mulsid(4); // 0000000rrc
const time2 = decodeTimestamp(id2); // 0

const id3 = mulsid(10); // 0000001uLE
const time3 = decodeTimestamp(id3) // 9
```