open-index/open-npm huggingface dataset:
npm package: 1loc
Description: One line of code as a library
Author: MartinsOnuoha
Latest version: 1.2.0

# 1Loc Lib

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)

A library of witty Javascript one-liner functions. The [1loc.dev](https://1loc.dev/) website has a collection of useful Javascript one-liners, now you get to use them in your Javascript projects.

One Liners are great, but the rest of your team would appreciate a little more clarity, So we've abstracted them for you, as readeable function names, so you and your teammates can focus on important stuff.

## TOC

- [1Loc Lib](#1loc-lib)
  - [TOC](#toc)
  - [Getting Started](#getting-started)
  - [Import Any One-liner and use](#import-any-one-liner-and-use)
  - [Explore a list of possible One-liners](#explore-a-list-of-possible-one-liners)
  - [One Liners](#one-liners)
  - [Contribution](#contribution)

## Getting Started

Install the 1Loc library using `yarn` or `npm`

```bash
yarn add 1loc
```

or using npm

```bash
npm i 1loc --save
```

## Import Any One-liner and use

```js
import { cloneArray } from '1loc'

const myArray = [{ name: 'me', age: 2}]
const arrayClone = cloneArray(myArray) // [{ name: 'me', age: 2}]

```

More Examples

```js
import { arrayHasSameValues } from '1loc'

const hasSameValues = arrayHasSameValues([1, 2, 4], [4, 1, 2])

console.log(hasSameValues) // true
```

## Explore a list of possible One-liners

[Documentation Here](https://martins-victor.gitbook.io/1loc-lib/)

You can also visit the original 1loc website [here](https://1loc.dev/).

## One Liners

Here's a collection of function definitions and what they do.

## Contribution
npm package: 1loc-vscode
Description: VSCode Snippets for JavaScript utilities in one line of code (loc).
Author: Luqman Olushi
Latest version: 0.0.0

# 1loc-vscode

<img src="src/images/logo.png" width="100" alt="1loc vscode logo"/>

> VSCode extension for JavaScript utilities in one line of code (loc)!

## Motivation

Time flies finding the snippets I want on the [1loc](https://1loc.dev) website. This was an attempt to make it easily accessible to have all snippets at my fingertips in the [code editor](https://code.visualstudio.com/) I (& millions of developers) use every day. This project was originally forked from [1loc](https://github.com/1milligram/1loc)

<img src="https://github.com/codeshifu/assets/blob/main/videos/1loc-vscode.gif?raw=true" alt="demo gif" width="550" />

## Run it locally

```bash
git clone git@github.com:codeshifu/1loc-vscode.git

cd 1loc-vscode

yarn install

yarn dev
```

Generated snippets can be found in `extension/snippets` folder

## Packaging

You should have `vsce` installed globally

```bash
yarn global add vsce
# or
npm install -g vsce
```

then run in the root dir i.e. `1loc-vscode`

```bash
yarn package
```

## Author

<table><tr><td align="center"><a href="https://twitter.com/codeshifu"><img src="https://avatars0.githubusercontent.com/u/5154605?v=4" width="100px;" alt="Luqman Olushi O."/><br /><sub><b>Luqman Olushi O.</b></sub></a></table>

## Support
Please consider supporting me by subscribing to my [YouTube channel](https://www.youtube.com/channel/UCEJVuahEIFCjDSqSzOaZ7yg) 🙏🏽

## License

This project is licensed under
[MIT](https://github.com/codeshifu/1loc-vscode/blob/main/extension/license.md)
npm package: 1log
Description: Log function with superpowers
Latest version: 3.0.2
Deprecated: Deprecated in favor of @1log/* packages: https://github.com/ivan7237d/1log

<!-- README for NPM; the one for GitHub is in .github directory. -->

[![gzip size](https://badgen.net/bundlephobia/minzip/1log?color=green)](https://bundlephobia.com/result?p=1log)
[![tree shaking](https://badgen.net/bundlephobia/tree-shaking/1log)](https://bundlephobia.com/result?p=1log)
[![types](https://img.shields.io/npm/types/1log?color=brightgreen)](https://www.npmjs.com/package/1log)
[![coverage status](https://coveralls.io/repos/github/ivan7237d/1log/badge.svg?branch=master)](https://coveralls.io/github/ivan7237d/1log?branch=master)

This library provides a function `log` that can be used as the regular `console.log`, but has two superpowers: you can insert it into any expression, as in `f(log(x))`, and it supports plugins. There are plugins for setting severity level, for logging functions, async functions, promises, iterables, async iterables, observables, for creating snapshots of log messages in Jest tests, and more.

Please refer to the [GitHub README](https://github.com/ivan7237d/1log#readme) for full documentation and screenshots.
npm package: 1log-antiutils
Description: 1log plugin for Antiutils
Latest version: 3.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<!-- README for NPM; the one for GitHub is in .github directory. -->

[![gzip size](https://badgen.net/bundlephobia/minzip/1log-antiutils?color=green)](https://bundlephobia.com/result?p=1log-antiutils)
[![tree shaking](https://badgen.net/bundlephobia/tree-shaking/1log-antiutils)](https://bundlephobia.com/result?p=1log-antiutils)
[![types](https://img.shields.io/npm/types/1log-antiutils?color=brightgreen)](https://www.npmjs.com/package/1log-antiutils)
[![coverage status](https://coveralls.io/repos/github/ivan7237d/1log-antiutils/badge.svg?branch=master)](https://coveralls.io/github/ivan7237d/1log-antiutils?branch=master)

Provides a [1log](https://github.com/ivan7237d/1log) plugin for logging [Antiutils](https://github.com/ivan7237d/antiutils) views.

Please refer to the [GitHub README](https://github.com/ivan7237d/1log-antiutils#readme) for full documentation and screenshots.
npm package: 1log-rxjs
Description: 1log plugin for logging RxJS observables
Latest version: 4.0.0
Deprecated: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

<!-- README for NPM; the one for GitHub is in .github directory. -->

[![gzip size](https://badgen.net/bundlephobia/minzip/1log-rxjs?color=green)](https://bundlephobia.com/result?p=1log-rxjs)
[![tree shaking](https://badgen.net/bundlephobia/tree-shaking/1log-rxjs)](https://bundlephobia.com/result?p=1log-rxjs)
[![types](https://img.shields.io/npm/types/1log-rxjs?color=brightgreen)](https://www.npmjs.com/package/1log-rxjs)
[![coverage status](https://coveralls.io/repos/github/ivan7237d/1log-rxjs/badge.svg?branch=master)](https://coveralls.io/github/ivan7237d/1log-rxjs?branch=master)

[1log](https://github.com/ivan7237d/1log) plugin for logging RxJS observables. Different events in the lifecycle of an observable are marked with colored badges. Observables and subscriptions are assigned numbers, and these numbers let you tell which subscription a specific next/error/completion/unsub applies to. Log messages include time deltas and use indentation to show synchronous stack level. Besides logging to the console, you can use this plugin to test observables by creating snapshots of log messages in Jest tests.

Please refer to the [GitHub README](https://github.com/ivan7237d/1log-rxjs#readme) for full documentation and screenshots.