1.0.8 • Published 4 years ago
react-humanize-string v1.0.8
React Humanize String
Humanize a camelized/dasherized/underscored string in React and React Native
npm_is_awesome
→Npm is awesome
This Module is a clone of Sindresorhus humanize-string and customized for React and React Native.
Demo in Glitch
Install
$ npm install react-humanize-string
Usage
import React from 'react';
import HumanizeString from 'react-humanize-string';
const App = () => (
<div>
<HumanizeString input={'npm_is_awesome'} />
</div>
);
API
input={input}
Type: string
<HumanizeString input={'npm_is_awesome'} />
// => 'Npm is awesome'
License
MIT © Yoginth