Like Javascript's substr, but with wrapping and reversed substrings.
npm install @pelevesque/supersubstr


Like Javascript's substr, but with wrapping and reversed substrings.
https://www.npmjs.com/package/@pelevesque/supersubstr
npm install @pelevesque/supersubstr
Command | Description
---------------------------- | ------------npm test or npm run test | All Tests Belownpm run cover | Standard Stylenpm run standard | Coveragenpm run unit | Unit Tests
``js`
str (required)
options (optional) default = { startIndex = 0, length, reverse = false }
`js`
const supersubstr = require('@pelevesque/supersubstr')
`js`
const str = '12345'
const result = supersubstr(str, { startIndex: 1 })
// result === '2345'
`js``
const str = '12345'
const result = supersubstr(str, { startIndex: 2, length: 10, reverse: true })
// result === '3215432154'