Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@cityssm/fill-block-range

cityssm1.4kMIT0.3.0TypeScript support: included

Fills in a range of letters, numbers, or "Battleship-like" letter-number combinations.

fill-range, number-range, letter-range, letter-number-range, block-range, battleship

readme

Fill Block Range

NPM Version DeepSource codecov Code Smells

Fills in a range of letters, numbers, or "Battleship-like" letter-number combinations.

Installation

npm install @cityssm/fill-block-range

Usage

import fillBlockRange from '@cityssm/fill-block-range'

console.log(fillBlockRange('01', '10'))
// => ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10']

console.log(fillBlockRange('A1', 'C3'))
// => ['A1', 'A2', 'A3', 'B1', 'B2', 'B3', 'C1', 'C2', 'C3']

console.log(fillBlockRange('5A', '5D'))
// => ['5A', '5B', '5C', '5D']

Thanks

This package is made possible using two amazing packages.

Sunrise Cemetery Management System (CMS)

  • A web-based application to assist cemetery managers with managing their cemetery records.
  • Uses @cityssm/fill-block-range to quickly generate blocks of burial sites.