Package Exports
- strility
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strility) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
strility
Strility is a string manipulation library
[Work in progress]
Usage
$ npm i --save strilityApi
const { isUpperCase } = require('strility');
isUpperCase('string')- string, the input string.
- returns true or false
const { isLowerCase } = require('strility');
isLowerCase('string')- string, the input string.
- returns true or false
const { isString } = require('strility');
isString('string')- string, the input string.
- returns true or false
// Uses the Fisher-Yates algorithm
const { shuffle } = require('strility');
shuffle('string') // 'trsgni'- string, the input string.
- returns shuffled string
const { chars } = require('strility');
chars('string') // [ 's', 't', 'r', 'i', 'n', 'g' ]- string, the input string.
- returns array of characters
Tests
$ npm testContribution
Contributions are appreciated.
License
MIT-licensed. See LICENSE.