{"name":"noon","version":"2.14.0","description":"'nother ordinary object notation","keywords":["noon","object","notation"],"author":{"name":"monsterkodi"},"license":"Unlicense","main":"js/main.js","bin":{"noon":"./bin/noon"},"repository":{"type":"git","url":"git+https://github.com/monsterkodi/noon.git"},"bugs":{"url":"https://github.com/monsterkodi/noon/issues"},"scripts":{"mocha":"mocha -c --require koffee/js/register ./test/test.coffee","test":"mocha --require koffee/js/register test/test.coffee -r jscoverage -R mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js"},"homepage":"https://www.npmjs.com/package/noon","coffeelintConfig":{"indentation":{"level":"error","value":4},"line_endings":{"level":"error","value":"unix"},"max_line_length":{"level":"warn","value":120},"no_trailing_whitespace":{"level":"ignore","value":false},"no_nested_string_interpolation":{"level":"ignore","value":false}},"dependencies":{"js-yaml":"^3.13.1","karg":"^1.19.0","klor":"^1.1.1","lodash.defaults":"^4.2.0","lodash.pad":"^4.5.1"},"devDependencies":{"chai":"^4.2.0","coveralls":"^3.0.4","jscoverage":"^0.6.0","koffee":"^1.2.0","mocha":"^6.1.4","mocha-lcov-reporter":"^1.3.0"},"gitHead":"8e7f9b891688c7e5ea5c127ef5e23f44385fca09","_id":"noon@2.14.0","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-8mcz31PhUC+SwMs0LzdlvCsxfUUmyqviOUO/46QsNey970CPVWQcZR6cfhSmvXbf4tI0zXx8AGAG7dOlw3EVJQ==","shasum":"fe29d674d3f6ce0df2a44ee9af7fa1e668a2b03d","tarball":"http://registry-npm.ywwl.com/noon/download/noon-2.14.0.tgz","fileCount":9,"unpackedSize":85983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdAgVUCRA9TVsSAnZWagAAvJgP/1V9Uatg1IueoKx2mSki\nKUjMEvuL8z3BbaCeFhXpVqb6D22pxwby/lgTqZiAu+n32u9L0+/AY4fKFe5E\nezmH4XNDNQio0YG0sIH53OJXKEHNsFe40gGp4GyTf5Er4LWKTXfAHiKKW7Qv\nBWuqGbdgtKHnD/AOMTv/SlhSgB9nyqJ0r88PPUWjxF8MJB0RoNr+vfT7Cvyl\nNjpqr3/bnbCQ+BuxUkX4pQPin46fopzbvvTPwbUfwFNDc+SrpsLEwLSqUhKD\nF83tqU/cZs2r8tA3g/8zHd5nxMq7OsakXfCxNlkx5r1RmqzpSHd6wAluScTy\nRIxUC53UpOTc/qDOIyeyCqJ7e1KZEQSftI+6zS4L1DXDb7HGU93H+GwY7JZe\ny5gE5klXkB/RcaCpuTIO9WMCJmQkArnRtsxykFdIkz3wUnSfpt7KofuqGlXd\nLOnw/aDAvQzKFs9FKHHqihhtmkV8wH38pskh9vW3t1JJVgBlxxPnmJDOViUw\najPVb6JWMH0Gm8Xh3ScbNN/ga6/dhsbr2lwX8gukjhzNUN1MsianaB01MHvz\nSVlpdi59MyTzeyQ2Der9vXe6PjXgCde6/aERc/WpALbe+Io3Zg1O1U+S5Wmg\nLMdSCUmlZ4Q2XAu6d+EczghYIuUDx4lDV6yRzs19c/LuThHBsPt1SX23QbEg\n93gK\r\n=gDsA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDRh7nb17anJ4ON9AF3kXS8cZpqHyNZPyqYQI2qjUN0pgIgbexIQPV08EW1A3KkpOm/zQfU+K8JiKli+GducBqA+Vo="}],"size":25021,"noattachment":false,"key":"/noon/-/noon-2.14.0.tgz"},"maintainers":[{"name":"monsterkodi","email":"monsterkodi@gmx.net"}],"_npmUser":{"name":"monsterkodi","email":"monsterkodi@gmx.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/noon_2.14.0_1560413524265_0.038729711659792"},"_hasShrinkwrap":false,"readme":"\n![icon](./img/icon.png)\n\n![noon](./img/noon.png)\n\n### noon\n\nis an object notation with a focus on human readability.\n\nWhitespace is preferred over other control characters:\n\n- Indentation is used to express hierarchy\n- Strings don't need to be escaped\n    - works well in config files\n    - works well in [command line arguments](https://github.com/monsterkodi/colorcat/blob/master/test/test.sh)\n    - good for storing [regexp patterns](https://github.com/monsterkodi/ko/blob/master/syntax/ko.noon)\n    \n### example files\n\n* [package](https://github.com/monsterkodi/noon/blob/master/package.noon)\n* [language](https://github.com/monsterkodi/language-noon/blob/master/grammars/noon.noon)\n* [urtil](https://github.com/monsterkodi/urtil/blob/gh-pages/examples/example)\n* [font](https://github.com/monsterkodi/salter/blob/master/font.noon)\n* [menu](https://github.com/monsterkodi/kaligraf/blob/master/coffee/menu.noon)\n\n### format\n\n#### hierarchy\n\nis expressed by indentation with spaces\n\n```\ngrandpa\n    parent\n        child\n        sibling\n    uncle\n```\n\n#### dictionaries\n\ntwo or more spaces mark the end of a dictionary key, therefore ...  \nkeys and list items can have single spaces in them but ...  \nunescaped dictionary keys can't contain consecutive spaces:\n\n```\nkey 1    value 1\nkey 2    value 2 contains    spaces\n```   \n\n#### one key makes an object\n\n```\nthis is\nan   object\n```\n\nthe above as json: `{\"this is\": null, \"an\": \"object\"}`  \nwhile \n\n```\nthis is\nnot an object\n``` \n\nis equivalent to `[\"this is\", \"not an object\"]`\n\n#### objects inside lists \n\nare expressed like this:\n```\n.\n    a  1\n.\n    b  2\n```\nthe above as json: `[{\"a\": 1}, {\"b\": 2}]`\n\n### strings\n\n#### escaping\n\nif trimming your strings is not an option, you can escape:\n\n```\na             |  leading spaces\nb             trailing spaces  |\nc             |  leading and trailing spaces  |\npipe symbol   |||\nempty string  ||\n```     \n\nkeys must be escaped from both ends:\n\n```\n| s  pace |  key keeps spaces\n|    |       key consists of spaces\n||           key is empty string\n```   \n\n#### multiline strings\n\n```\nkey  ...\nvalue is\na text with\nline breaks\nwhich stops\nnow\n...  \n```\n\n#### comments\n\n```coffeescript\n# comments start with the hash sign\n# mixing of data and comments is not allowed\ntherefore:\n    1 # this is not a comment\n    | # neither is this one\n      # but this one is \n```\n\n### inline\n\nsometimes data needs to be encoded in a single line. \n\n#### dense notation\n\n```\nkey  . a .. b . c\n```\n\nis equivalent to\n\n```\nkey\n    a\n        b\n    c\n```\n\n#### one line notation\n\n**::** represents a line break  \nno spaces in keys allowed, therefore ...  \nno two-space-seperation necessary:\n\n```\nkey . a :: b . c :: d 1 :: e 2\n```\n\nis equivalent to\n\n```\nkey\n    a\nb\n    c\nd   1\ne   2\n```\n\n### command line\n\n![cli](./img/cli.png)\n\n### module\n\n```coffeescript\nnoon = require 'noon'\n\n# usage is similar to JSON \n\nnoon.stringify { hello: 'world' }\n\n# hello    world\n\nnoon.parse \"\"\"\nhello         world\nwhat's up?    ☺\n\"\"\"\n\n# { hello: 'world', 'what\\'s up?': '☺' }\n\nstringify_options =   # stringify's second argument, defaults are: \n    ext:      'noon'  # output format: noon or json\n    indent:   4       # number of spaces per indent level\n    align:    true    # vertically align object values\n    maxalign: 32      # maximal number of spaces when aligning\n    sort:     false   # sort object keys alphabetically\n    circular: false   # check for circular references (expensive!)\n    colors:   false   # colorize output with ansi colors\n    \n```\n\n```coffeescript\n\n# load data from file \n\ndata = noon.load 'file.noon' \ndata = noon.load 'file.json'\n\n# write data to file\n\nnoon.save 'file.noon', data\n\nnoon.save 'file.noon', data, stringify_options\nnoon.save 'file.json', data  # < write as json\nnoon.save 'noext', data, ext: 'noon'\n\n```\n\n### caveats\n\n- keys can't start with the pipe symbol: |\n- escaped keys can't contain the pipe symbol\n- empty objects are not expressible\n\nDon't use it if you can't live with the limitations mentioned above.  \n\n[![npm package][npm-image]][npm-url] \n[![Build Status][travis-image]][travis-url] \n[![downloads][downloads-image]][downloads-url] \n\n[npm-image]:https://img.shields.io/npm/v/noon.svg\n[npm-url]:http://npmjs.org/package/noon\n[travis-image]:https://travis-ci.org/monsterkodi/noon.svg?branch=master\n[travis-url]:https://travis-ci.org/monsterkodi/noon\n[downloads-image]:https://img.shields.io/npm/dm/noon.svg\n[downloads-url]:https://www.npmtrends.com/noon\n","publish_time":1560413524385,"_cnpm_publish_time":1560413524385,"dist-tags":{"latest":"3.5.0"}}