{"id":16092830,"url":"https://github.com/dleitee/formating","last_synced_at":"2026-02-09T17:32:40.362Z","repository":{"id":57240471,"uuid":"44272854","full_name":"dleitee/formating","owner":"dleitee","description":"A simple library for data format","archived":false,"fork":false,"pushed_at":"2018-06-05T16:25:35.000Z","size":18,"stargazers_count":2,"open_issues_count":10,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-21T05:07:59.778Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dleitee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-14T19:58:41.000Z","updated_at":"2023-03-23T12:25:39.000Z","dependencies_parsed_at":"2022-08-30T00:11:49.872Z","dependency_job_id":null,"html_url":"https://github.com/dleitee/formating","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dleitee/formating","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleitee%2Fformating","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleitee%2Fformating/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleitee%2Fformating/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleitee%2Fformating/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dleitee","download_url":"https://codeload.github.com/dleitee/formating/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dleitee%2Fformating/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266490121,"owners_count":23937375,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-09T16:44:13.991Z","updated_at":"2026-02-09T17:32:35.344Z","avatar_url":"https://github.com/dleitee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# formating\nA simple library for data format\n\n**Is under development**\n\n## Install\n\n**Formating** is available on npm:\n```\nnpm install formating --save\n```\n\n## Usage\n\n### With ES6/import\n\n```javascript\nimport {format, string} from 'formating'\n\nlet toFormat = format(string.trim)\nlet result = toFormat(' Test Formating ')\n// result =\u003e 'Test Formating'\n```\n\n### With require\n\n```javascript\nvar formating = require('formating')\nvar format = formating.format\nvar string = formating.string\n\nvar toFormat = format(string.trim)\nvar result = toFormat(' Test Formating ')\n// result =\u003e 'Test Formating'\n```\n\n### With Browser\n\n```html\n\u003cscript src=\"./node_modules/formating/dist/format.js\"\u003e\u003c/script\u003e\n```\n\n```javascript\nvar format = formating.format\nvar string = format.string\n\nvar toFormat = format(string.trim)\nvar result = toFormat(' Test Formating ')\n// result =\u003e 'Test Formating'\n```\nOR\n```javascript\nvar format = window.formating.format\nvar string = format.string\n\nvar toFormat = format(string.trim)\nvar result = toFormat( 'Test Formating ')\n// result =\u003e 'Test Formating'\n```\n\nAlso available for [AMD](https://github.com/amdjs/amdjs-api/wiki/AMD)\n\n# Formating Functions\n\n- [x] [String](https://github.com/dleitee/formating/blob/master/docs/string.md)\n    - [x] ltrim\n    - [x] rtrim\n    - [x] trim\n    - [x] lowerCase\n    - [x] upperCase\n    - [x] camelCase\n    - [x] snakeCase\n    - [x] kebabCase\n    - [x] studlyCaps\n\n# LICENSE\nThe MIT License (MIT)\n\nCopyright (c) 2015 Daniel Leite de Oliveira\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdleitee%2Fformating","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdleitee%2Fformating","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdleitee%2Fformating/lists"}