{"id":27720811,"url":"https://github.com/idleberg/node-is-cson","last_synced_at":"2026-04-28T18:07:30.117Z","repository":{"id":47787793,"uuid":"188613591","full_name":"idleberg/node-is-cson","owner":"idleberg","description":"Determines whether a string is valid CSON","archived":false,"fork":false,"pushed_at":"2023-12-28T11:58:02.000Z","size":708,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T01:53:21.488Z","etag":null,"topics":["coffeescript","cson"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/is-cson","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/idleberg.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}},"created_at":"2019-05-25T21:24:58.000Z","updated_at":"2023-07-23T21:47:20.000Z","dependencies_parsed_at":"2023-12-28T13:00:14.636Z","dependency_job_id":null,"html_url":"https://github.com/idleberg/node-is-cson","commit_stats":{"total_commits":82,"total_committers":4,"mean_commits":20.5,"dds":"0.14634146341463417","last_synced_commit":"dc2305ae346d20f0eb159ccf837904c379ca5302"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idleberg%2Fnode-is-cson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idleberg%2Fnode-is-cson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idleberg%2Fnode-is-cson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/idleberg%2Fnode-is-cson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/idleberg","download_url":"https://codeload.github.com/idleberg/node-is-cson/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251119576,"owners_count":21539194,"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":["coffeescript","cson"],"created_at":"2025-04-27T10:01:06.657Z","updated_at":"2026-04-28T18:07:25.059Z","avatar_url":"https://github.com/idleberg.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-cson\n\n\u003e Determines whether a string is valid CSON\n\n[![License](https://img.shields.io/github/license/idleberg/node-is-cson?color=blue\u0026style=for-the-badge)](https://github.com/idleberg/node-is-cson/blob/main/LICENSE)\n[![Version](https://img.shields.io/npm/v/is-cson?style=for-the-badge)](https://www.npmjs.org/package/is-cson)\n[![Build](https://img.shields.io/github/actions/workflow/status/idleberg/node-is-cson/default.yml?style=for-the-badge)](https://github.com/idleberg/node-is-cson/actions)\n\n## Installation\n\n`npm install is-cson -S`\n\n## Usage\n\n`isCSON(string, options?)`\n\n**Example:**\n\n```js\nimport { isCSON } from 'is-cson';\n\n// Generate CSON string\nconst csonString = `\n  firstName: 'John'\n  lastName: 'Doe'\n`;\n\nisCSON(csonString);\n// =\u003e true\n```\n\n### Options\n\n#### `allowJSON`\n\nDefault: `false`  \n\nSince CSON is a superset of *well-formatted* JSON, this library runs *strict* tests for CSON only. Enabling this option will also validate JSON, with CSON-specific features (such as trailing commas or single quotes) taking precedence.\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eExample\u003c/strong\u003e\u003c/summary\u003e\n\n```js\nconst jsonString = `{\n  \"firstName\": \"John\",\n  \"lastName\": \"Doe\"\n}`;\n\nisCSON(jsonString, { allowJSON: true });\n// =\u003e true\n```\n\u003c/details\u003e\n\n## License\n\nThis work is licensed under [The MIT License](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidleberg%2Fnode-is-cson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fidleberg%2Fnode-is-cson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fidleberg%2Fnode-is-cson/lists"}