# @teclone/utils

> A collection of day-to-day utility methods usable in both node and browser environments

Latest version **2.26.1** (published 2021-12-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install @teclone/utils
pnpm add @teclone/utils
yarn add @teclone/utils
bun add @teclone/utils
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.26.1 |
| Published | 2021-12-26 |
| First published | 2020-03-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 398.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Harrison Ifeanyichukwu |
| Maintainers | teclone |
| Keywords | utility-methods, node-utils, browser-utils, common-functions |

## Links

- npm: https://www.npmjs.com/package/@teclone/utils
- Repository: https://github.com/teclone/utils
- Homepage: https://github.com/teclone/utils#readme
- Issues: https://github.com/teclone/utils/issues
- npm.io page: https://npm.io/package/@teclone/utils

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.26.1 (latest) — 2021-12-26
- 2.26.0 — 2021-08-14
- 2.25.1 — 2021-06-12
- 2.25.0 — 2021-06-12
- 2.24.0 — 2021-05-18
- 2.23.7 — 2021-05-16
- 2.23.6 — 2021-05-05
- 2.23.5 — 2021-05-04
- 2.23.4 — 2021-05-03
- 2.23.3 — 2021-04-28
- 2.23.2 — 2021-03-24
- 2.23.1 — 2021-02-17
- 2.23.0 — 2021-02-12
- 2.22.2 — 2021-01-13
- 2.22.1 — 2020-11-18
- … 21 more at https://npm.io/package/@teclone/utils/versions

## README

# Utils

[![Build Status](https://travis-ci.org/teclone/utils.svg?branch=master)](https://travis-ci.org/teclone/utils)
[![Coverage Status](https://coveralls.io/repos/github/teclone/utils/badge.svg?branch=master)](https://coveralls.io/github/teclone/utils?branch=master)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![npm version](https://badge.fury.io/js/%40teclone%2Futils.svg)](https://badge.fury.io/js/%40teclone%2Futils)
![npm](https://img.shields.io/npm/dt/%40teclone%2Futils.svg)

Utils is a collection of utility methods for day to day web application and library development. It is developed for reusability purposes as it is utilized by most of all libraries published by same author.

If you bumped into this project and find it useful for your project, please don't hesitate to give us a star. Because it is a typescript project, you get excellent auto-completion and type checks.

## Installation

```bash
npm install @teclone/utils
```

## Usage Sample

```typescript
import { scopeCallback, camelCase, copy, range, expandProperty } from '@teclone/utils';

console.log(camelCase('my-string')); //logs myString
console.log(camelCase('my:string', ':')); //logs myString

//copy objects without creating references
const myObject = {
  headers: {
    contentType: 'text/html',
  },
  colors: ['#fff', 'green', '#808080'],
};
const myObjectCopy = copy({}, myObject);

//changing headers does not change the copy
myObject.headers.contentType = 'text/css';
console.log(myObjectCopy.headers.contentType); //logs text/html

// expand property into a target object
const result = expandProperty({}, 'headers.contentType', 'text/css');
console.log(result.headers.contentType); // logs text/css
```

---
_Source: https://npm.io/package/@teclone/utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
