{"bin":{"json2yaml":"bin/json2yaml.js","yaml2json":"bin/yaml2json.js"},"bugs":{"url":"https://github.com/k7sleeper/js-yaml-cli/issues"},"dist":{"shasum":"f7bd3068807b57c8783325639dad9351bd2444e4","tarball":"https://registry.npmjs.org/js-yaml-cli/-/js-yaml-cli-0.6.0.tgz","integrity":"sha512-/e4MfsHvltV6s0awzBhwCyq4H9fUHlgrsomryOvc8V0iUs+xY5LPTTrv6hLRZw3FTUtaQCrm09QgtvgE1u59zg==","signatures":[{"sig":"MEUCIAedMh2hiTXfne1P8sAYKCXRkxIxW6VN1pmO2PYk/pBZAiEAiTvkC0w+8NJivUx7HgQCc+iln3ZE1PTPMbFNrO6W9DM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"./lib","name":"js-yaml-cli","_from":".","author":{"name":"Klaus Sevensleeper","email":"k7sleeper@gmail.com"},"readme":"JavaScript YAML Command-line Utilities\r\n======================================\r\n\r\nCommand-line utilities to convert [YAML](http://yaml.org/) files to JSON files and vice versa.\r\n\r\njs-yaml-cli is based on [js-yaml](http://github.com/nodeca/js-yaml)\r\nand provides a more sophisticated command-line interface \r\nthan that one [js-yaml](http://github.com/nodeca/js-yaml) comes along with. js-yaml-cli can be used, for example, to\r\nset-up a [WebStorm](http://www.jetbrains.com/webstorm) file watcher for YAML files.\r\n\r\nCurrently, js-yaml-cli depends on [js-yaml](http://github.com/nodeca/js-yaml#) 3.1.0\r\n\r\nThe scripts of js-yaml-cli run under [Node.js](http://nodejs.org/).\r\n\r\n## Installation\r\n\r\njs-yaml-cli depends on [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/). It's\r\ninstalled globally using npm:\r\n\r\n```\r\nnpm install -g js-yaml-cli\r\n```\r\n\r\nIf you want you can install js-yaml-cli locally (type `npm install js-yaml-cli` in the project directory you want)\r\nbut a global installation is the recommended way.\r\n\r\nOnce installed, you should have access to the commands `yaml2json` and `json2yaml`.\r\n\r\n## Usage\r\n\r\n### YAML to JSON\r\n\r\n`yaml2json -h` shows:\r\n\r\n~~~\r\nusage: yaml2json [-h] [-v] [-V] [-q] [-c] [-m] [-f] [-o OUTPUT] [-e ENC]\r\n                 [-d DIRECTORY] [-r] [-t]\r\n                 [SOURCE]\r\n\r\nParse a given YAML file, serialize it to JavaScript and store it as JSON file.\r\n\r\nPositional arguments:\r\n  SOURCE                YAML file to process, UTF-8 encoded (if not modified by option -e), without BOM.\r\n                        Input file encoding can be changed using option -e.\r\n                        If SOURCE denotes a directory all .yaml and .yml\r\n                        files in that directory are parsed and serialized to\r\n                        JSON. If option -r is specified all files in all\r\n                        subdirectories are processed, also. If argument\r\n                        SOURCE is not present then yaml2json listens for and\r\n                        processes input over stdio. Output is then written to\r\n                        stdout. In this case, the program works in quiet mode.\r\n                         Nothing else than user data is written to stdout.\r\n                        Only errors are written to stderr.\r\n\r\nOptional arguments:\r\n  -h, --help            Show this help message and exit.\r\n  -v, --version         Show program's version number and exit.\r\n  -V, --verbose         print extra information per each processed file\r\n  -q, --quiet, --silent\r\n                        be extra quiet\r\n  -c, --compact         display errors in compact mode\r\n  -m, --force-multiple  by default each YAML input file is handled as if it\r\n                        contains multiple documents. Therefore, the resulting\r\n                        JSON file contains an array of these documents. If a\r\n                        YAML source file contains only one document, it's not\r\n                        stored as an array with one element but directly,\r\n                        without the enclosing array. Option -m can be used to\r\n                        force storing single-document YAML file as an array\r\n                        with one element. This option may be usefull if the\r\n                        source file may contain a single document which is an\r\n                        array.\r\n  -f, --fail-fast       fail as soon as an error occurs when processing\r\n                        multiple files (SOURCE is a directory)\r\n  -o OUTPUT, --output OUTPUT\r\n                        set the file path for the resulting JSON file\r\n  -e ENC, --encoding ENC\r\n                        use encoding ENC for reading the YAML source file.\r\n                        Allowed values are: 'hex', 'utf8', 'utf-8', 'ascii',\r\n                        'binary', 'base64', 'ucs2' 'ucs-2', 'utf16le',\r\n                        'utf-16le'. Default: 'utf8'\r\n  -d DIRECTORY, --directory DIRECTORY\r\n                        set the output directory for resulting JSON file\r\n  -r, --recurse         recurse into directories if SOURCE denotes a directory\r\n  -t, --trace           show stack trace on error\r\n\r\nThe resulting JavaScript object is stored in a .json file in the same directory as the source file.\r\n~~~\r\n\r\n### JSON to YAML\r\n\r\n`json2yaml` is still in development. It should not be used.\r\n\r\n## History\r\n\r\nSee [CHANGELOG](CHANGELOG.md)\r\n","engines":{"node":">= 0.10.21"},"license":{"url":"https://github.com/k7sleeper/js-yaml-cli/blob/master/LICENSE","type":"MIT"},"scripts":{"test":"node ./node_modules/jasmine-node/bin/jasmine-node --verbose --color --coffee --captureExceptions test","build":"grunt build","prepublish":"npm run build"},"_npmUser":{"name":"k7sleeper","email":"k7sleeper@gmail.com"},"homepage":"https://github.com/k7sleeper/js-yaml-cli","keywords":["yaml","json","parser","serializer","cli"],"repository":{"url":"git://github.com/k7sleeper/js-yaml-cli.git","type":"git"},"_npmVersion":"1.3.21","description":"Command-line utilities to convert YAML files to JSON files and vice versa.","maintainers":[{"name":"k7sleeper","email":"k7sleeper@gmail.com"}],"dependencies":{"colors":"~0.6.2","lodash":"~2.4.1","js-yaml":"~ 3.0.1","argparse":"~ 0.1.15","readdirp":"~0.3.2","underscore.string":"~2.3.3"},"engineStrict":true,"preferGlobal":true,"readmeFilename":"README.md","devDependencies":{"grunt":">=0.4.1","shelljs":">=0.2.6","coffeelint":">=1.0.3","jasmine-node":">=1.11.0","coffee-script":">=1.6.0","jasmine-expect":">=1.21.0","grunt-coffeelint":">=0.0.7","grunt-contrib-copy":">=0.4.1","grunt-contrib-watch":">=0.5.3","grunt-contrib-coffee":">=0.7.0"},"optionalDependencies":{},"_id":"js-yaml-cli@0.6.0","version":"0.6.0"}