npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

jeeebot

v0.0.30

Published

Generates constants for XCode Projects

Downloads

3

Readme

jeeebot

Jeeebot is a constants generator for XCode Projects that is written with Node.JS.

Using NSString* as a key easily cause serious misstake that is hard to find. Jeeebot generates keys as constants so, Compiler can check this errors easiy. XCode also prevent mistake and can suggest code completion with Jeeebot

Jeeebot can generate constants for:

  • Localized String Keys for .strings files.
  • Segue Identifiers from .Stroyboard files.
  • Reuse Identifiers from .Stroyboard and .xib files.
  • Named Image keys from .asset files.
  • Entity names, attribute names and fetch requests from core data model definition.

Jeeebot can be used as cli tool or can be integrated with XCode.

This project was started to use for my commercial ios projects. I'v helped a lot from great open source communities about the developing ios apps. Now I'm contributing my tool to pay back.

Build Status

Installation

You need to install node to use jeeebot.

$ npm install jeeebot -g
$ jeeebot -h
Usage:
  jeeebot [OPTIONS] [ARGS]

Options: 
  -t, --type STRING           Generator type: segue | reuse | strings | asset | 
                              coredata | plist 
      --fieldStyle [STRING]   Field naming style: uppercase | camelcase  (Default is camelcase)
      --fieldPrefix [STRING]  Prefix for field name (Default is k)
  -c, --copyright [STRING]    Copyright (Default is Jeeeyul Lee<[email protected]>)
  -o, --output PATH           Output file
  -h, --help                  Display help and usage details

Keys for localized string

en.lproj/strings.strings:

# Jeeebot
"hello" = "Hello";

ko.lproj/strings.strings:

# Jeeebot
"hello" = "안녕하세요!";
$ jeeebot -t strings *.lproj/strings.strings --fieldPrefix kLang -o strings.h

will generates:

//
//  strings.h
//
//  Created by Jeeebot on .
//  Copyright (c) 2015 . All rights reserved.
//
#ifndef strings_h


#pragma mark - Jeeebot

/** en : Hello! */
/** ko : 안녕하세요! */
static NSString* const kLangHello = @"hello";


#endif

Keys for segue identifier

$ jeeebot -t segue Storyboard.storyboard --fieldPrefix kSegue -o SegueIdentifiers.h
//
//  RPSegues.derived.h
//
//  Created by Jeeebot on Mon, Jan 26, 2015 12:44 PM.
//  Copyright (c) 2015 Jeeeyul Lee<[email protected]>. All rights reserved.
//
#ifndef RPSegues_derived_h


#pragma mark - Root View Controller

/**
 A Constant for showDetail segue identifier ‘edit-sort’.
 Root View Controller -> Sort Controller (showDetail)
*/
static NSString* const kSegueEditSort = @"edit-sort";

/**
 A Constant for showDetail segue identifier ‘show’.
 Root View Controller -> Calendar Settings Editor (showDetail)
*/
static NSString* const kSegueShow = @"show";


#pragma mark - Calendar Settings Editor

/**
 A Constant for show segue identifier ‘edit-priority-filter’.
 Calendar Settings Editor -> Priority Filter Editor (show)
*/
static NSString* const kSegueEditPriorityFilter = @"edit-priority-filter";

/**
 A Constant for show segue identifier ‘edit-due-filter’.
 Calendar Settings Editor -> Due Date Filter Editor (show)
*/
static NSString* const kSegueEditDueFilter = @"edit-due-filter";


#endif

Keys for Reuse Identifiers

$ jeeebot -t reuse Storyboard.storyboard --fieldPrefix kReuse -o ReuseIdentifiers.h
//
//  RPReuses.derived.h
//
//  Created by Jeeebot on Mon, Jan 26, 2015 12:44 PM.
//  Copyright (c) 2015 Jeeeyul Lee<[email protected]>. All rights reserved.
//
#ifndef RPReuses_derived_h


#pragma mark - Sort Controller

/** A constant for reuse identifier ‘default’ */
static NSString* const kReuseDefault = @"default";


#endif

Keys for Image Assets

$ jeeebot -t asset Media.assets --fieldPrefix kImage -o NamedImages.h
//
//  RPImages.derived.h
//
//  Created by Jeeebot on Mon, Jan 26, 2015 12:44 PM.
//  Copyright (c) 2015 Jeeeyul Lee<[email protected]>. All rights reserved.
//
#ifndef RPImages_derived_h


#pragma mark - default

/** An image constants for AppIcon.appiconset */
static NSString* const kImageAppIcon = @"AppIcon";

/** An image constants for Logo.imageset */
static NSString* const kImageLogo = @"Logo";


#endif

Keys for Core Data entities and attributes

$ jeeebot -t coredata "Test.xcdatamodeld/Test 4.xcdatamodel" --fieldPrefix kModel -o ModelKeys.h
//
//  RPModelKeys.derived.h
//
//  Created by Jeeebot on Tue, Jan 27, 2015 9:58 AM.
//  Copyright (c) 2015 Jeeeyul Lee<[email protected]>. All rights reserved.
//
#ifndef RPModelKeys_derived_h


#pragma mark - RPCalendarSettings

/** A constants for entity name ‘RPCalendarSettings’ */
static NSString* const kModelRPCalendarSettings = @"RPCalendarSettings";

/** calendarIdentifier:[String] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsCalendarIdentifier = @"calendarIdentifier";

/** displayInWidget:[Boolean] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsDisplayInWidget = @"displayInWidget";

/** displayNotScheduled:[Boolean] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsDisplayNotScheduled = @"displayNotScheduled";

/** dueDateFilter:[Integer 32] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsDueDateFilter = @"dueDateFilter";

/** filterCompoundRule:[Integer 32] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsFilterCompoundRule = @"filterCompoundRule";

/** order:[Integer 32] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsOrder = @"order";

/** priorityFilter:[Integer 32] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsPriorityFilter = @"priorityFilter";

/** useDueDateFilter:[Boolean] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsUseDueDateFilter = @"useDueDateFilter";

/** usePriorityFilter:[Boolean] attribute of RPCalendarSettings */
static NSString* const kModelRPCalendarSettingsUsePriorityFilter = @"usePriorityFilter";


#endif