# bengali-excel-order-dictionary

> order a certain colomn of an excel file with dictionary like sorting and republish it. Available for Bengali and English

Latest version **1.0.12** (published 2021-02-26) · GNU GPLv3 license · 0 weekly downloads

## Install

```sh
npm install bengali-excel-order-dictionary
pnpm add bengali-excel-order-dictionary
yarn add bengali-excel-order-dictionary
bun add bengali-excel-order-dictionary
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.12 |
| Published | 2021-02-26 |
| First published | 2020-04-12 |
| Weekly downloads | 0 |
| License | GNU GPLv3 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 3 |
| Unpacked size | 51.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | darkie8 |
| Maintainers | darkie8 |
| Keywords | bengali, English, dictionary, sort |

## Links

- npm: https://www.npmjs.com/package/bengali-excel-order-dictionary
- Repository: https://github.com/darkie8/excel-order-dictionary-alike
- Homepage: https://github.com/darkie8/excel-order-dictionary-alike#readme
- Issues: https://github.com/darkie8/excel-order-dictionary-alike/issues
- npm.io page: https://npm.io/package/bengali-excel-order-dictionary

## Dependencies (3)

- [xlsx](https://npm.io/package/xlsx.md) ^0.15.6
- [axios](https://npm.io/package/axios.md) ^0.21.1
- [@types/node](https://npm.io/package/@types/node.md) ^13.11.1

## Recent versions

- 1.0.12 (latest) — 2021-02-26
- 1.0.11 — 2020-04-12
- 1.0.10 — 2020-04-12
- 1.0.9 — 2020-04-12
- 1.0.8 — 2020-04-12
- 1.0.7 — 2020-04-12
- 1.0.6 — 2020-04-12
- 1.0.5 — 2020-04-12
- 1.0.4 — 2020-04-12
- 1.0.3 — 2020-04-12
- 1.0.2 — 2020-04-12
- 1.0.1 — 2020-04-12
- 1.0.0 — 2020-04-12

## README

# Excel file order formatter for Bengali & English

=========

A small library that orders a certain colomn of an excel file with dictionary like sorting and republish it. Available for Bengali and English

## NEW IN VERSION 1.0.12

Old Bug fixes.New method inclusion !!!
## Installation

  `npm install bengali-excel-order-dictionary`

## Usage

    const {orderExcel, orderExcelSpecificWorkSheet, orderJSON} = require('bengali-excel-order-dictionary');

    // import {orderExcel, orderExcelSpecificWorkSheet, orderJSON} from 'bengali-excel-order-dictionary';

    // use 'bng' for bengali alphabets and 'eng' for English Alphabets
    // the last param true returns formatted JSON, false return void
    
    const input = `https://xyz.com`; 
    // const input = fs.readFileSync('target.xlslx'); 
    
    const sortingColumn = ['sorting_column']; // column to be sorted of respective worksheets.
    const columnCount = [5]; // column numbers of respective worksheets.
    const sortingLang = 'bng';
    const path = 'downloads/dictionary.xlsx';
    const jsonResturn = true; 

    orderExcel(url, sortingColumn, sortingLang, path, jsonResturn).then(

    el => console.log(el)

    ).catch(e => console.error(e))

    // for certain worksheet
    orderExcelSpecificWorkSheet(input,'dictionarAy', sortingColumn[0],columnCount[0], sortingLang, path, jsonResturn).catch(e => console.error(e));

  Output should be an excel file with formatted column

    // for Sorting inside a JSON
    let jsontobesorted = [{
      C: 'মোটা',
      D: 'এত মোটা বই একদনে পড়া হয়ে গেছে।'
    },
    { C: 'গরম', D: 'বাইরে তো গরম।'},
    {
      C: 'পুরু',
      D: 'দুধের উপর পুরু সর জমেছে। ',
    }]
    orderJSON(jsontobesorted, 'C', jsontobesorted.length, 'bng')

  Output should be an JSON array

## Tests

  `not yet written`

## Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

---
_Source: https://npm.io/package/bengali-excel-order-dictionary · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
