0.3.0 • Published 5 months ago

@cityssm/fill-block-range v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

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.

Related Projects from the City of Sault Ste. Marie

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.