{"id":17814482,"url":"https://github.com/csb324/mcneil","last_synced_at":"2025-04-02T07:43:01.260Z","repository":{"id":32444280,"uuid":"36022590","full_name":"csb324/mcneil","owner":"csb324","description":"Tiny plugin for making sure certain letters are lowercase no matter what","archived":false,"fork":false,"pushed_at":"2015-06-01T15:05:29.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-07T22:42:54.126Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/csb324.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-21T15:55:54.000Z","updated_at":"2017-05-31T10:00:32.000Z","dependencies_parsed_at":"2022-09-03T23:11:05.403Z","dependency_job_id":null,"html_url":"https://github.com/csb324/mcneil","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb324%2Fmcneil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb324%2Fmcneil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb324%2Fmcneil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csb324%2Fmcneil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csb324","download_url":"https://codeload.github.com/csb324/mcneil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246777829,"owners_count":20832032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-27T16:06:20.169Z","updated_at":"2025-04-02T07:43:01.240Z","avatar_url":"https://github.com/csb324.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"McNeil is a jQuery Plugin for Making Some Letters Lowercase\n==================================\n\nEver run into a situation where using \"text-transform: uppercase\" ruins your whole life?\n\nMaybe your name is \"McNeil\", and you need the \"c\" in your name to be lowercase no matter what, under penalty of death, because of a deal your great great grandfather once made with an evil sorcerer?\n\nMaybe your new startup is called \"SwIrLy\", and the lowercase letters are ~vital~ to your ~branding~?\n\nEver wish there were a solution to this problem? McNeil has your back.\n\n\nHow To Improve Your Life With McNeil\n====================================\n\n### 1\\. Include the file in your project.\n\n\nDownload mcneil.js or mcneil.min.js. Include it wherever you like to include things. While you're at it, make sure you have jquery.\n\n### 2\\. Initialize McNeil\n\nHere's how to do that:\n\n    $('body').mcneil();\n\nThat's the simplest way. If you do that, McNeil will look for every sequence of \"Mc\" on your page and make sure the \"c\" is lowercase. What if you're dealing with something else? Don't worry!\n\n### 3. Check out the options\n\n\u003ctable\u003e\n    \u003cth\u003eOption\u003c/th\u003e\n    \u003cth\u003eDefault\u003c/th\u003e\n    \u003cth\u003eWhat it does\u003c/th\u003e\n\n    \u003ctr\u003e\n        \u003ctd\u003etargetString\u003c/td\u003e\n        \u003ctd\u003e\"Mc\"\u003c/td\u003e\n        \u003ctd\u003eThis is the full string McNeil looks for.\u003c/td\u003e\n    \u003c/tr\u003e\n\n    \u003ctr\u003e\n        \u003ctd\u003etargetIndex\u003c/td\u003e\n        \u003ctd\u003e2\u003c/td\u003e\n        \u003ctd\u003eThis is the position of the letter in the string that you want to force-lowercase. Counting starts at 1, not zero, so the targetIndex of \"Mc\" is 2. Sorry not sorry.\u003c/td\u003e\n    \u003c/tr\u003e\n\n    \u003ctr\u003e\n        \u003ctd\u003einlineStyles\u003c/td\u003e\n        \u003ctd\u003etrue\u003c/td\u003e\n        \u003ctd\u003eShould McNeil use inline styles to make this letter lowercase, or should McNeil use a custom class? If true, McNeil uses inline styles. If you want to do other custom styling to your target-letter, set this to false.\u003c/td\u003e\n    \u003c/tr\u003e\n\n    \u003ctr\u003e\n        \u003ctd\u003espanClass\u003c/td\u003e\n        \u003ctd\u003e\"mcneil-force-lower\"\u003c/td\u003e\n        \u003ctd\u003eIf inlineStyles is false, this is the class that McNeil adds to the newly-created \u003cspan\u003e with your letter. It then appends a style tag to the head of your document, forcing the stuff with this class to be lowercase. Change it if you want to.\u003c/td\u003e\n    \u003c/tr\u003e\n\n\u003c/table\u003e\n\nFor example, suppose I have a friend named Cynthia, and I'm making her a website. She really wants the \"i\" in her name to be lowercase no matter what, because she's an artist and she thinks it will look creative, but I'm using \"text-transform: uppercase\" on some header elements where I mention her name.\n\nThis would be a big problem if not for the magic of McNeil!\n\nI include McNeil and add this to my javascript:\n\n    $(document).ready(function() {\n        $('body').mcneil({\n            targetString: \"Cynthia\",\n            targetIndex: 6\n        });\n    })\n\nCynthia is happy, and we go out for cupcakes and have a great afternoon.\n\nProblems McNeil Does Not Solve\n===============\n\n1. Using caps lock\n2. Startups thinking it's even a good idea to call themselves \"SwIrLy\"\n3. Loneliness\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsb324%2Fmcneil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsb324%2Fmcneil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsb324%2Fmcneil/lists"}