{"id":18432152,"url":"https://github.com/dustinspecker/count-spaces","last_synced_at":"2025-04-14T01:21:15.750Z","repository":{"id":34744061,"uuid":"38723815","full_name":"dustinspecker/count-spaces","owner":"dustinspecker","description":"Count number of spaces","archived":false,"fork":false,"pushed_at":"2017-05-31T21:39:28.000Z","size":20,"stargazers_count":1,"open_issues_count":12,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-17T16:17:12.179Z","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/dustinspecker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-08T01:11:36.000Z","updated_at":"2016-01-12T23:27:26.000Z","dependencies_parsed_at":"2022-09-02T19:02:53.771Z","dependency_job_id":null,"html_url":"https://github.com/dustinspecker/count-spaces","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fcount-spaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fcount-spaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fcount-spaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dustinspecker%2Fcount-spaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dustinspecker","download_url":"https://codeload.github.com/dustinspecker/count-spaces/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248805420,"owners_count":21164327,"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-11-06T05:27:39.188Z","updated_at":"2025-04-14T01:21:15.725Z","avatar_url":"https://github.com/dustinspecker.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# count-spaces\n[![NPM version](https://badge.fury.io/js/count-spaces.svg)](https://badge.fury.io/js/count-spaces) [![Build Status](https://travis-ci.org/dustinspecker/count-spaces.svg)](https://travis-ci.org/dustinspecker/count-spaces) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/count-spaces.svg)](https://coveralls.io/r/dustinspecker/count-spaces?branch=master)\n\n[![Code Climate](https://codeclimate.com/github/dustinspecker/count-spaces/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/count-spaces) [![Dependencies](https://david-dm.org/dustinspecker/count-spaces.svg)](https://david-dm.org/dustinspecker/count-spaces/#info=dependencies\u0026view=table) [![DevDependencies](https://david-dm.org/dustinspecker/count-spaces/dev-status.svg)](https://david-dm.org/dustinspecker/count-spaces/#info=devDependencies\u0026view=table)\n\n\u003e Count number of spaces\n\n## Install\n```\nnpm install --save count-spaces\n```\n\n## Usage\n### ES2015 (ES6)\n```javascript\nimport {end, start, total} from 'count-spaces';\n\nend('some spaces  ');\n// =\u003e 2\n\nstart('  start');\n// =\u003e 2\n\ntotal('  line of spaces ');\n// =\u003e 5\n```\n\n### ES5\n```javascript\nvar countSpaces = require('count-spaces');\n\ncountSpaces.end('some spaces  ');\n// =\u003e 2\n\ncountSpaces.start('  start');\n// =\u003e 2\n\ncountSpaces.total('  line of spaces ');\n// =\u003e 5\n```\n\n## LICENSE\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustinspecker%2Fcount-spaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdustinspecker%2Fcount-spaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdustinspecker%2Fcount-spaces/lists"}