some tool-like methods of javascript
npm install hknife --save
import hKnife from 'hknife';
hKnife.camelCase('good-name'); // 'goodName'
trim spaces of str
console.log(hKnife.trim(' hi, what is your name? ')); // 'hi, what is your name?'
trim left spaces of str
console.log(hKnife.leftTrim(' hi, what is your name? ')); // 'hi, what is your name? '
trim right spaces of str
console.log(hKnife.rightTrim(' hi, what is your name? ')); // ' hi, what is your name?'
transform hyphen to camel case
console.log(hKnife.camelCase('good-name')); // 'goodName'