@emberx/string
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

@emberx/string - String transformation methods for node.js and browser

General purpose string utility methods for node.js and browser, extraced from ember.js:

import { camelize, capitalize, classify, dasherize, decamelize, underscore } from '@emberx/string';

camelize('Green house') // => greenHouse
capitalize('privateDocs/ownerInvoice') // => Private_docs/Owner_invoice
classify('my favorite items') // => MyFavoriteItems
dasherize('innerHTML') // => inner-html
decamelize('PrivateDocs/OwnerInvoice') // => private_docs/owner_invoice
underscore('css-class-name') // => css_class_name

Readme

Keywords

none

Package Sidebar

Install

npm i @emberx/string

Weekly Downloads

13

Version

0.0.14

License

ISC

Unpacked Size

12.8 kB

Total Files

8

Last publish

Collaborators

  • izelnakri