mgscarp-openinghours-serialize

0.0.1 • Public • Published

OpeningHours Serialize

Serialize OpeningHours to textual representation.

Installation

$ npm install mgscarp-openinghours-serialize --save

Usage

var serialize = require('mgscarp-openinghours-serialize');
 
var data = [
        { from: 600, to: 840 },
        { from: 2040, to: 2280 },
        { from: 3480, to: 3720 }
    ];
 
// returns 'Mo-We 10:00-14:00'
serialize(data); 

Tests

Run tests with Mocha

$ make test

Check

Readme

Keywords

Package Sidebar

Install

npm i mgscarp-openinghours-serialize

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • antaranian