Skip to content

Helpers for working with discontinuous integer ranges

Notifications You must be signed in to change notification settings

rymohr/deranged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Example

import deranged from 'deranged';

deranged.parse('2005..2008,2010,2015..2018')
// => [2005, 2006, 2007, 2008, 2010, 2015, 2016, 2017, 2018]

deranged.stringify([2005, 2006, 2007, 2008, 2010, 2015, 2016, 2017, 2018])
// => '2005..2008,2010,2015..2018'

About

Helpers for working with discontinuous integer ranges

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published