open-index/open-npm huggingface dataset:
npm package: @mudssrali/chunkify
Description: a simple utility to split given array into chunks of input size with array reverse option
Author: Mudassar Ali
Latest version: 1.0.0

# chunkify
A simple utility to split given array into chunks of input size with array reverse option

[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest)
<a aria-label="Package size" href="https://bundlephobia.com/result?p=@mudssrali/chunkify">
  <img alt="" src="https://badgen.net/bundlephobia/minzip/@mudssrali/chunkify">
</a>

## Install

Install with npm or yarn via

```
yarn add @mudssrali/chunkify
```

or

```
npm i @mudssrali/chunkify
```

## API

```ts
 const chunkify: <T>(kvArray: T[], chunkSize: number, reverse?: boolean) => T[][];
```

## Usage

```js
import chunkify from '@mudssrali/chunkify'

const value = chunkify([1,2,3,4], 2)

// value === [[1, 2], [3, 4]]
```

You can also pass reverse option as third argument to reverse the order of array element while creating chunks

```js
import chunkify from '@mudssrali/chunkify'

const value = chunkify(["open-source", "is", "everything"], 1, true)

// value === [["everything"], ["is"], ["open-source"]]

```

Also keep in mind, if the chunkSize is >= kvArray.length, return value will be in form of `[[]]`

```jsx
import chunkify from 'chunkify'

const value = chunkify([1,2,3,4], 4)
// value === [ [1, 2, 3, 4] ]
// value === [ [4, 3, 2, 1] ] // true passed as third argument to chunkify
```
npm package: @mudstack/webtoon-psd
Description: lightweight psd file parser with no dependency written in typescript
Author: W FE Tech
Latest version: 2.0.2

# @webtoon/psd

[![Package on NPM](https://img.shields.io/npm/v/@webtoon/psd)](https://www.npmjs.com/package/@webtoon/psd) [![Minified size](https://img.shields.io/bundlephobia/min/@webtoon/psd)](https://bundlephobia.com/package/@webtoon/psd)

> A lightweight Adobe Photoshop .psd/.psb file parser in typescript with zero-dependency for web browsers and NodeJS

`@webtoon/psd` is a fast, lightweight parser for Adobe Photoshop PSD/PSB files. It uses standard (ES2015+) features and can be used both in web browsers and in Node.js. It pulls in zero dependencies, making it smaller than other PSD parsers.

Check out:

- [GitHub repo](https://github.com/webtoon/psd/) for documentation.
- [Live demo](https://webtoon.github.io/psd/)
- [Benchmark page](https://webtoon.github.io/psd/benchmark/)

## License

`@webtoon/psd` is released under the [MIT license](https://github.com/webtoon/psd/blob/main/LICENSE).

```
Copyright 2021-present NAVER WEBTOON

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```