JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q57028F
  • License MIT

Useful simple functions.

Package Exports

  • useful-simple-functions

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 (useful-simple-functions) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

useful-simple-functions

GitHub package.json version npm npm GitHub top language GitHub

Useful simple functions.

Installing

Using npm:

npm i useful-simple-functions

Using bower:

bower install useful-simple-functions

Using yarn:

yarn add useful-simple-functions

Example

note: CommonJS usage

const useful = require('useful-simple-functions');

useful.capitalize('text text');
// TEXT TEXT

useful.sanitize('A@B#C$1%2&3');
// ABC123

Methods

sanitize

const useful = require('useful-simple-functions');

useful.sanitize('A@B#C$1%2&3');
// ABC123

capitalize

const useful = require('useful-simple-functions');

useful.capitalize('text text');
// TEXT TEXT

sanitizeAndCapitalize

const useful = require('useful-simple-functions');

useful.sanitizeAndCapitalize('a@b#c$1%2&3');
// ABC123

capitalizeFirst

const useful = require('useful-simple-functions');

useful.capitalizeFirst('any text');
// Any text

License

MIT