An open API service indexing awesome lists of open source software.

https://github.com/impeiran/ure

🛠️A lib with some utility functions used frequently
https://github.com/impeiran/ure

browser javascript javascript-tools util utility-library

Last synced: 8 months ago
JSON representation

🛠️A lib with some utility functions used frequently

Awesome Lists containing this project

README

          

# ure

[![npm version](https://img.shields.io/npm/v/ure.svg)](https://badge.fury.io/js/ure) ![gzip size](https://img.shields.io/bundlephobia/minzip/ure.svg?label=gzip%20size) ![license](https://img.shields.io/badge/license-MIT-blue.svg)

ure is a lib with some utility functions used frequently. Most of these functions are faced to browser.Inspired by `lodash` and `bbo`.

[Documents](https://impeiran.github.io/ure)

## **Installation**

```bash
# use npm
npm install ure --save

# use cnpm
pnpm add ure

# use yarn
yarn add ure
```

**Or you can download the js file**:

- ure.js [click here](https://github.com/impeiran/ure/raw/master/dist/ure.js)
- ure.min.js [click here](https://github.com/impeiran/ure/raw/master/dist/ure.min.js)

## **Usage**

Use CommonJS module

```javascript
const ure = require('ure')
ure.getCookie()
```

Use ES module

```javascript
import ure from 'ure'
ure.isEmpty(list)
```

Or require/import individual function

```javascript
import isEmpty from 'ure/isEmpty'

const parseCookie = require('ure/parseCookie')
```