BriefCase 0.1.2

BriefCase 0.1.2

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Apr 2016
SPMSupports SPM

Maintained by Soloy.



BriefCase 0.1.2

  • By
  • Fredrik Soløy

BriefCase

This is a small lib for converting from one naming convention to another

Usage

Supported case’s:

  • CobolCase : open-briefcase
  • UpperCobolCase : Open-Briefcase
  • CamelCase : openBriefcase
  • PascalCase : OpenBriefcase
  • SnakeCase : open_briefcase
  • MacroCase : OPEN_BRIEFCASE
let b = BriefCase()

b.convert(from: .SnakeCase, to: .PascalCase, source: "two_words") // Converted to TwoWords
b.convert(from: .CamelCase, to: .MacroCase, source: "twoWords") // Converted to TWO_WORDS

Installation

BriefCase is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "BriefCase"

Author

Fredrik Soløy, https://github.com/soloy

License

BriefCase is available under the MIT license. See the LICENSE file for more info.