camel-transform
v1.0.20
Published
transform camel string to understore or dot or
Readme
camel-transform
tranform uppercamel or lowercasecamel to string with underscore or hyphen or dot.
Install
$ npm install camel-tranformUsage
const {transform}=require("camel-transform");
var str=transform("UserNameProfile","dot")//user.name.profile
var str=transform("UserProfileName","underscore")//user_profile_name
var str=transform("UserProfileName","hyphen")//user-profile-nameAPI
transform(input, [options])
input
Type: string
camel String to convert to string with hyphen or underscore or dots
License
MIT © Sindre Sorhus
