{"id":19753234,"url":"https://github.com/philmander/parse-boolean","last_synced_at":"2026-06-09T03:40:49.026Z","repository":{"id":138919733,"uuid":"198680102","full_name":"philmander/parse-boolean","owner":"philmander","description":"Bullet proof parseBoolean function.","archived":false,"fork":false,"pushed_at":"2019-07-24T17:55:44.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T21:48:55.438Z","etag":null,"topics":["boolean","boolean-logic"],"latest_commit_sha":null,"homepage":"","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/philmander.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-07-24T17:22:23.000Z","updated_at":"2019-07-24T17:59:19.000Z","dependencies_parsed_at":"2023-03-18T16:04:01.278Z","dependency_job_id":null,"html_url":"https://github.com/philmander/parse-boolean","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/philmander%2Fparse-boolean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philmander%2Fparse-boolean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philmander%2Fparse-boolean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/philmander%2Fparse-boolean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/philmander","download_url":"https://codeload.github.com/philmander/parse-boolean/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241084569,"owners_count":19907131,"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":["boolean","boolean-logic"],"created_at":"2024-11-12T02:52:13.514Z","updated_at":"2026-06-09T03:40:43.978Z","avatar_url":"https://github.com/philmander.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# parse-boolean\n\nParse boolean function I've always used.\n\n`npm i -S parse-boolean`\n\nExamples:\n\n```js\nconst parseBoolean = require('parse-boolean');\n\n// true\nparseBoolean(true) // true\nparseBoolean(new Boolean(true)) // true\nparseBoolean('true') // true\nparseBoolean('TRUE') // true\nparseBoolean('trUe') // true\nparseBoolean('   true   ') // true\nparseBoolean(new String('true') // true\nparseBoolean(1) // true\nparseBoolean(-1) // true\nparseBoolean(0.1) // true\nparseBoolean(new Number(1)) // true\n\n// false\nparseBoolean(false) // false\nparseBoolean('false') // false\nparseBoolean('blah') // false\nparseBoolean('') // false\nparseBoolean('1') // false\nparseBoolean(0) // false\nparseBoolean(null) // false\nparseBoolean(undefined) // false\nparseBoolean({}) // false\nparseBoolean([]) // false\nparseBoolean(NaN) // false\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilmander%2Fparse-boolean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphilmander%2Fparse-boolean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphilmander%2Fparse-boolean/lists"}