{"_id":"@builtbygio/season","name":"@builtbygio/season","dist-tags":{"latest":"6.0.2"},"versions":{"6.0.2":{"name":"@builtbygio/season","version":"6.0.2","description":"CSON utilities","licenses":[{"type":"MIT","url":"http://github.com/atom/season/raw/master/LICENSE.md"}],"main":"./lib/cson.js","bin":{"csonc":"bin/csonc"},"scripts":{"prepublish":"grunt clean lint coffee","test":"grunt test"},"repository":{"type":"git","url":"git+https://github.com/atom/season.git"},"bugs":{"url":"https://github.com/atom/season/issues"},"homepage":"http://atom.github.io/season","keywords":["cson","json","CoffeeScript"],"dependencies":{"cson-parser":"^1.3.0","fs-plus":"^3.0.0","yargs":"^3.23.0"},"devDependencies":{"jasmine-focused":"1.x","grunt-contrib-coffee":"~0.9.0","grunt-cli":"~0.1.8","grunt":"~0.4.1","grunt-shell":"~0.2.2","grunt-coffeelint":"0.0.6","temp":"~0.5.0","rimraf":"~2.1.4"},"engines":{"chevron":"*"},"_id":"@builtbygio/season@6.0.2","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-CKEsfJUpGf06tMxFKSzrMdqmIPYgNk9T0gLp1mEPAiTWDRNminaYd88w/Qv5snmBiTp7Mhl1tdHQMIhXxQ48GQ==","shasum":"ba11faa4ad8e9ab2e370619bb972b7a2aaeb5a29","tarball":"https://registry.npmjs.org/@builtbygio/season/-/season-6.0.2.tgz","fileCount":6,"unpackedSize":16428,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDi0k6SDmVdiuUjrGG2haq+oQbzlER7K8Q16VfRC6pD0wIgcS9OtdOPjuTXG7qWPsz/Q0yVCiIkQ23zmX3fcUaNUcI="}]},"_npmUser":{"name":"giobuilds","email":"giova19@proton.me"},"directories":{},"maintainers":[{"name":"giobuilds","email":"giova19@proton.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/season_6.0.2_1787781666944_0.5631418920498823"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-26T22:01:06.772Z","6.0.2":"2026-08-26T22:01:07.081Z","modified":"2026-08-26T22:01:07.361Z"},"maintainers":[{"name":"giobuilds","email":"giova19@proton.me"}],"description":"CSON utilities","homepage":"http://atom.github.io/season","keywords":["cson","json","CoffeeScript"],"repository":{"type":"git","url":"git+https://github.com/atom/season.git"},"bugs":{"url":"https://github.com/atom/season/issues"},"readme":"# season - CSON Node module\n[![macOS Build Status](https://travis-ci.org/atom/season.svg?branch=master)](https://travis-ci.org/atom/season) [![Windows Build Status](https://ci.appveyor.com/api/projects/status/v3bth3ooq5q8k8lx/branch/master?svg=true)](https://ci.appveyor.com/project/Atom/season) [![Dependency Status](https://david-dm.org/atom/season.svg)](https://david-dm.org/atom/season)\n\nRead and write CSON/JSON files seamlessly.\n\n## Installing\n\n```sh\nnpm install season\n```\n\n## Building\n  * Clone the repository\n  * Run `npm install`\n  * Run `grunt` to compile the CoffeeScript code\n  * Run `grunt test` to run the specs\n\n## Compiling CSON to JSON\n\nThis module comes with a `csonc` executable that allows you to compile a CSON\nfile to JSON.\n\nTo use:\n\n```sh\nnpm install -g season\necho \"this: 'is cson'\" > file.cson\ncsonc file.cson --output file.json\ncat file.json\n{\n  \"this\": \"is cson\"\n}\n```\n\n## Docs\n\n```coffeescript\nCSON = require 'season'\n```\n\n### CSON.setCacheDir(cacheDirectory)\n\nSet the cache directory to use for storing compiled CSON files.\n\n`cacheDirectory` - Root directory path for storing compiled CSON.\n\n### CSON.stringify(object)\n\nConvert the object to a CSON string.\n\n`object` - The object to convert to CSON.\n\nReturns the CSON string representation of the given object.\n\n### CSON.readFile(objectPath, callback)\n\nRead the CSON or JSON object at the given path and return it to the callback\nonce it is read and parsed.\n\n`objectPath` - The string path to a JSON or CSON object file.\n\n`callback` - The function to call with the error or object once the path\n             is read and parsed.\n\n### CSON.readFileSync(objectPath)\n\nSynchronous version of `CSON.readFile(objectPath, callback)`.\n\nReturns the object read from the path or throws an error if reading fails.\n\n### CSON.writeFile(objectPath, object, callback)\n\nWrite the object to the given path as either JSON or CSON depending on the\npath's extension.\n\n`objectPath` - The string path to a JSON or CSON object file.\n\n`object` - The object to convert to a string and write to the path.\n\n`callback` - The function to with an error object on failures.\n\n### CSON.writeFileSync(objectPath, object)\n\nSynchronous version of `CSON.writeFile(objectPath, object, callback)`\n\n### CSON.isObjectPath(objectPath)\n\nIs the given path a valid object path?\n\nReturns `true` if the path has a `.json` or `.cson` file extension, `false`\notherwise.\n\n### CSON.resolve(objectPath)\n\nResolve the path to an existent file that has a `.json` or `.cson` extension.\n\n`objectPath` - The string path to a JSON or CSON object file with or without\n               an extension.\n\nReturns the path to an existent CSON or JSON file or `null` if none found.\n","readmeFilename":"README.md","_rev":"1-f22b564caa30f0c8eda3279a26ce5599"}