{"id":18897284,"url":"https://github.com/iagocalazans/nosep","last_synced_at":"2025-04-15T02:08:57.406Z","repository":{"id":78720482,"uuid":"383598118","full_name":"iagocalazans/nosep","owner":"iagocalazans","description":"This facilitates the conversion of object properties that have separators to the format used in JS","archived":false,"fork":false,"pushed_at":"2021-07-06T22:07:45.000Z","size":7,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T02:08:46.604Z","etag":null,"topics":["modify","objects","sanitizer"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/nosep","language":"TypeScript","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/iagocalazans.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-07-06T21:06:19.000Z","updated_at":"2024-11-27T18:38:15.000Z","dependencies_parsed_at":"2023-05-23T00:00:37.026Z","dependency_job_id":null,"html_url":"https://github.com/iagocalazans/nosep","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagocalazans%2Fnosep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagocalazans%2Fnosep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagocalazans%2Fnosep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iagocalazans%2Fnosep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iagocalazans","download_url":"https://codeload.github.com/iagocalazans/nosep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991544,"owners_count":21194894,"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":["modify","objects","sanitizer"],"created_at":"2024-11-08T08:36:52.535Z","updated_at":"2025-04-15T02:08:57.400Z","avatar_url":"https://github.com/iagocalazans.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWelcome to No Separators (nosep) 👋\u003c/h1\u003e\n\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.0-blue.svg?cacheSeconds=2592000\" /\u003e\n  \u003cimg src=\"https://img.shields.io/badge/node-14.x-blue.svg\" /\u003e\n  \u003ca href=\"#\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-no-red.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n### This module facilitates the conversion of object properties that have separators to the format used in JS.\n\n## Install\nyarn users:\n```sh\nyarn add nosep\n```\nnpm users:\n```sh\nnpm install nosep\n```\n\nImporting:\n```js\nimport { noSep } from 'nosep'\n```\n\n---\n\n## Usage:\n\n### Sanitize Object Properties\n\nIn the below object we have properties with the most varied forms of used separators. Let's call `.sanitizeProperties(obj, separator)` and check the result after application.\n\n```js\nconst object = {'deploy#in-azure_dev-ops': false, 'deploy#in-dev_mode': true}\n\n//noSep.sanitizeProperties(object[,separator])\n\n/**\n * camelCasing properties with default '_' (underscore) \n */ \nnoSep.sanitizeProperties(object); // =\u003e { 'deploy#in-azureDev-ops': false, 'deploy#in-devMode': true }\n\n/**\n * camelCasing properties with '#'\n */ \nnoSep.sanitizeProperties(object, '#'); // =\u003e { 'deployIn-azureDev-ops': false, 'deployIn-devMode': true }\n\n/**\n * camelCasing properties with '-'\n */\nnoSep.sanitizeProperties(object, '-'); // =\u003e { deployInAzureDevOps: false, deployInDevMode: true }\n\n/**\n * camelCasing properties with 'y' (letter)\n */\nnoSep.sanitizeProperties(object, 'y'); // =\u003e { deploInAzureDevOps: false, deploInDevMode: true }\n\n```\n\n---\n\n\n## Aditional Usage:\n\n### CamelCase string Array \u0026 Capitalize string\n\nIn addition we can use `.capitalize(string)` to generate a `camelCaseBased` string from an Array of strings, or simple Capitalize a string.\n\n```js \n// noSep.capitalize(string[,string[]])\n\n/** \n * camelCasing an Array of strings\n */\nnoSep.capitalize(['created', 'class', 'function']); // =\u003e createdClassFunction\n\n\n/** \n * Capitalizing the string \"created\"\n */\n noSep.capitalize('created') // =\u003e Created\n```\n\n---\n\n\n## Author\n\n👤 **Iago Calazans** (💼 *Senior Node|TypeScript Developer*)\n\n* Website: https://iagocalazans.github.io/\n* GitHub: https://github.com/iagocalazans/\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiagocalazans%2Fnosep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiagocalazans%2Fnosep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiagocalazans%2Fnosep/lists"}