{"_id":"@eightshapes/esds-token-compiler","_rev":"5-8581c073ae8ff7375375a762d40f407d","name":"@eightshapes/esds-token-compiler","dist-tags":{"latest":"0.4.2"},"versions":{"0.2.0":{"name":"@eightshapes/esds-token-compiler","version":"0.2.0","description":"","main":"src/index.js","bin":{"compile-tokens":"bin/compile-tokens"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"publishConfig":{"access":"public"},"keywords":["cli","design system","compile-tokens","tokens"],"author":{"name":"Kevin Powell","email":"kevinmpowell@gmail.com"},"license":"ISC","devDependencies":{"eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","prettier":"^1.18.2"},"dependencies":{"arg":"^4.1.1","chalk":"^2.4.2","esm":"^3.2.25","flat":"^4.1.0","fs":"0.0.1-security","js-beautify":"^1.10.2","mkdirp":"^0.5.1","path":"^0.12.7","yamljs":"^0.3.0"},"gitHead":"536754dc2d870502ac5ecd2d78018a55b910e200","_id":"@eightshapes/esds-token-compiler@0.2.0","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.16.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-vN12ZZnv63ed1JXv3eDnSzq63ayHorvrjVaS+MKBL3EQaGiJyX71UgV3YsOuaynO5HWQ1UUfAvAWO/khKs8YxQ==","shasum":"d7e89c381757af66f92d94ee076151b97f1d1fdc","tarball":"https://registry.npmjs.org/@eightshapes/esds-token-compiler/-/esds-token-compiler-0.2.0.tgz","fileCount":5,"unpackedSize":8156,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTOHRCRA9TVsSAnZWagAAE+kP/jVObRLcmy/A4COKKDfc\neHpIzo1Yq7xvvkpaEbv4jRIior4NOwnKpRdzqeCRWgCpsdizXXqKQPTypSHA\n6TWdUrW/fZi22j9eXw9h9ctJBBfkPPIo2Sge5cDG6lSsx7yb9Ylqi6y/9Dw/\nshZCJz3AFnJFTlaursgl43IM1yxS4pQU1Bp4MeClFmUQHcJnv/OMSuIrhYYV\nru5hOjCz4jGHpluUzQoFrNsMKO45bvzdq06q/j0B8ZFbri2Wvk9PRlCqWtal\nhSHGKdy0H2SJutJLadUCimtyMEe8PbXBx6ZHh7RTFVt7wOilWfCPyjK6MDFI\nv+7MuY1tuVkMfQCUQSoETM2O36uEIdZHwpR23nJsRGFK4i0MN3LdXZjgaU4Y\nf5sXmTUx69EfofwEuuQ26YAP2a/hwwaXsm0oyzgf6PDQA5xPrJ5EFr/JGwne\nJggxBO2QyOmZP44WYMubecgfGf3zOW1dax6NJQ40UMkBUthfGp27Mw4+Bld6\nvJe8OZ7vfp+oW4ytxiqrRAyGRU+odvHji2gqspdFtlt4VwqikW0KSZlMrHZi\nIWxrp94DxnH3PSOc6rQX6I/6Fwfua7xktTNCEMJhpFilrS80Bn1DLbKPV769\nMrj6Jxr5t4VGWLSuq4y8BT4mevh0dKV5hR84YF6HMYZRP3qWcPHf95AfYhmd\nB7fB\r\n=yF+d\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDuIpLXi/KVMkuejGJQikz0Cl6BStpAO0x1A8zo2BFk/wIgOOinDGJjpb/9Xsre+8ZXRkCTVGuJs9ByD5aIpjjToUs="}]},"maintainers":[{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},{"name":"detzi","email":"chris@eightshapes.com"},{"name":"nathanacurtis","email":"nathan@eightshapes.com"}],"_npmUser":{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esds-token-compiler_0.2.0_1565319632668_0.631601032507731"},"_hasShrinkwrap":false},"0.3.0":{"name":"@eightshapes/esds-token-compiler","version":"0.3.0","description":"Given a source .yaml file and a token namespace this cli will convert the yaml file to .json and .scss formats and output the results to the specified `dest`.","main":"src/index.js","bin":{"compile-tokens":"bin/compile-tokens"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"publishConfig":{"access":"public"},"keywords":["cli","design system","compile-tokens","tokens"],"author":{"name":"Kevin Powell","email":"kevinmpowell@gmail.com"},"license":"ISC","devDependencies":{"eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","prettier":"^1.18.2"},"dependencies":{"arg":"^4.1.1","chalk":"^2.4.2","chokidar":"^3.0.2","esm":"^3.2.25","flat":"^4.1.0","fs":"0.0.1-security","js-beautify":"^1.10.2","listr":"^0.14.3","mkdirp":"^0.5.1","path":"^0.12.7","yamljs":"^0.3.0"},"gitHead":"b8a0c25b2f346f976db8b2ac941460edb6ebf762","_id":"@eightshapes/esds-token-compiler@0.3.0","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.16.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-m+vRAjMVh0Fyz5v4FuwscXv/4n2zkwisKUJ3eLZtYxTHBzyVFbEpyMHbMS5zlId7xWxoodfxhz5ssNN+j8cfXg==","shasum":"61df6030903380e14588a2a0b63703a42831003f","tarball":"https://registry.npmjs.org/@eightshapes/esds-token-compiler/-/esds-token-compiler-0.3.0.tgz","fileCount":6,"unpackedSize":15863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdTcrxCRA9TVsSAnZWagAAc68P/A2JJt0eBMls/ebWUa3H\nKsQS3Pu97rPRicdo6SrMLhlpeKDcAdvvqUDfZL6rlutMDtG7dEBUaT7uTIDt\nb4sKztzX2tB9XLMl0ZcwxIz4xut2R05DPZ0BUFfr7E1ucLb7NDQt8GYcGonK\n22ID7MwYsT32uRmHgCIpLc0SqroTQNOd3LkkZDbLNlqWarSzgEpPcc34S8Cq\nzH3skUuN/rJG4g+XnX9ydmPwEsI4BM0YzRq07/abkVb9sxbRkAMk5W5UPHvS\nNKaSO/96H69h9MovgVYqav0woRK9/SgRbdotGmymsvJhgZxA0yNB/nFBomFH\nSL0oFSl9fxiGABhy23imfLSseq3sMBl/Y0uJbXEYbH3Ix/tOzSbUcXifCNgu\nW3743Y3sO0JedrTPDfRcLP4uKigd4S/IdAWiIkWjwpL82MysxhwFXo0Tg55/\nrTplsM1A2dHyyInw9N+TKQU265Hs1usLXjkQnOdug+4i30y8wUFs9o2zhIyg\nW2GasDv7J/DdpTtcMl9tdCSoN//5gXUX2zkEbuB+xYrmYOOSc77Ns+rFMhvO\n33ha5A1+O3ft+s25UmaMw9XLowoyT/WmrwXOlxm6WYEsXW6ZGJdwHck43Xow\n7VB1OQ7EuaSkrrvUwYp3RoHiwtHyLEP+1vD/gCj7FmsyU7NkR+wQLe5DFmCx\nII/E\r\n=SN45\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBDvMdFJvbNBXmEslA90PlB7V4HrQjnr/1rH/3/Yd7kbAiAKiKp++bIJfLdMnz3LRWkWA9yEzLNykpFYL50v1SptBA=="}]},"maintainers":[{"name":"detzi","email":"chris@eightshapes.com"},{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},{"name":"nathanacurtis","email":"nathan@eightshapes.com"}],"_npmUser":{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esds-token-compiler_0.3.0_1565379312475_0.23092835299190417"},"_hasShrinkwrap":false},"0.4.0":{"name":"@eightshapes/esds-token-compiler","version":"0.4.0","description":"Given a source .yaml file and a token namespace this cli will convert the yaml file to .json and .scss formats and output the results to the specified `dest`.","main":"src/index.js","bin":{"compile-tokens":"bin/compile-tokens"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"publishConfig":{"access":"public"},"keywords":["cli","design system","compile-tokens","tokens"],"author":{"name":"Kevin Powell","email":"kevin@eightshapes.com"},"license":"ISC","devDependencies":{"eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","prettier":"^1.18.2"},"dependencies":{"arg":"^4.1.1","chalk":"^2.4.2","chokidar":"^3.0.2","esm":"^3.2.25","flat":"^4.1.0","fs":"0.0.1-security","js-beautify":"^1.10.2","listr":"^0.14.3","mkdirp":"^0.5.1","path":"^0.12.7","yamljs":"^0.3.0"},"gitHead":"cc7a9bbba69d8692dc8373029aa607d7a1be313e","_id":"@eightshapes/esds-token-compiler@0.4.0","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.16.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-Ns7oE4yrMrCFcP8+zGNmq1/AkBSeHLvAmMZq5WyEmaL/CydWPVIbEomzMI22hUOcmU/dweDWszGsfS1Vl1h6Dw==","shasum":"f70de58c3c5822af02cff780f1c95b07b03c0af3","tarball":"https://registry.npmjs.org/@eightshapes/esds-token-compiler/-/esds-token-compiler-0.4.0.tgz","fileCount":6,"unpackedSize":16686,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdVbu+CRA9TVsSAnZWagAAv6QP/i8faeToSIht8RnhE2me\nwoH3KwRV5nf3sKP58DlEcfMGnLXLsdV6JUvVZ2bzQ/9F97DIelFJ0TZpyAJf\nM7RIyH5N2TTbI+V7x54GyEwnUSOogeZDY+oz9fVNWavyPwai1vLGoarivKEz\nVUaxVDu0fcZZye7eUTJczcwFuc7k2NkaaP+JyrlDMYrsgexjVn3rDwdiFUFn\nxOkeLlokqHzKWDSxR2ctONYTwFFfAK2e1YPv8MIVLZMVg2LZWiEM2IZn5dmS\n0SBZ4e78CfJjCCp0YEOyxOIy7pee2qkvLU4hRhiQJ2Xk0MHQrsGsL42cLsOe\ngc3MM1tXuZgl5BYTpIaAIaBmFawi/p49UmEK1GyZCmYWjqZwEDRPycNFdlOU\nLaot2KYvFGPBgWHbRik8/dyeVbQJpBoh9zQODgDYcCif09IIvdgMIX6RpE0x\nUqRbkcCBFX/XshPTbp9yhjClmMmPTBsKR4K5LgS/6aOwR6/tpavDWYYXKTVw\nTJrjvWUmrhT2tyX5w948dISw0eNgdaS21ABoQo08GMky3JsD1K9ja/9jmWNb\nfJaf5YniRU06XhupxiqynUUJm6sOhF1m74oIxAILfsVQm/SLiYSKaw6ixWxz\nRVaRRaaMesW+H/4KfaqhLy+w91t6G7tnUpZ9qmNdhUasxqoKC9Z0jlbCmjIL\nSWTf\r\n=EMKl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID4L53yKAkXtQzjDM3Ud87FsBE93kCMnUqBwn29q9FCXAiEA+o3CpkbGsVKNRr4+kkhxogrCQ3Wm9wPau5lP+KmD3KQ="}]},"maintainers":[{"name":"detzi","email":"chris@eightshapes.com"},{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},{"name":"nathanacurtis","email":"nathan@eightshapes.com"}],"_npmUser":{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esds-token-compiler_0.4.0_1565899709735_0.8888065791705739"},"_hasShrinkwrap":false},"0.4.1":{"name":"@eightshapes/esds-token-compiler","version":"0.4.1","description":"Given a source .yaml file and a token namespace this cli will convert the yaml file to .json and .scss formats and output the results to the specified `dest`.","main":"src/index.js","bin":{"compile-tokens":"bin/compile-tokens"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"publishConfig":{"access":"public"},"keywords":["cli","design system","compile-tokens","tokens"],"author":{"name":"Kevin Powell","email":"kevin@eightshapes.com"},"license":"ISC","devDependencies":{"eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","prettier":"^1.18.2"},"dependencies":{"arg":"^4.1.1","chalk":"^2.4.2","chokidar":"^3.0.2","esm":"^3.2.25","flat":"^4.1.0","fs":"0.0.1-security","js-beautify":"^1.10.2","listr":"^0.14.3","mkdirp":"^0.5.1","path":"^0.12.7","yamljs":"^0.3.0"},"gitHead":"f9aedb13b61b4063011479263c742ee4a80c0677","_id":"@eightshapes/esds-token-compiler@0.4.1","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.16.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-5nlSOneq1Ifoy8nkxXW8c209eY30U1JVIDC/IkqNvsBdTnqGD09V59WjBC2S83PLXo3I2DWwpgwsp9LbL31SAg==","shasum":"61a3d6d8c06c911caee37b31efa01e2194ef8f55","tarball":"https://registry.npmjs.org/@eightshapes/esds-token-compiler/-/esds-token-compiler-0.4.1.tgz","fileCount":6,"unpackedSize":16733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWwU8CRA9TVsSAnZWagAA9vIQAI12TNT8iPMfrK53ru0B\nzVoMl9+OmWHbQrfY3U5hK5NuNX70+5AJItsTmHSSC6NAhhF9/p6mEGnXjwlY\n5/GlKLJe31wjNmvFAea8eyIpa5U1vKhn7JTZP9TW1KvJynmFSoEVaNQkerqf\nzL5VDCTZwflPrQ90vgLjfyo/JhZls+v+05qfVgyDtsYT4niLZC/i4yLvf7he\nnIolYjLNEr7RmBffBai1fJOwexqYHkcqOhkiybpIii3d4gzzQBekvWWZFIKT\ndWpXClURy8/+Ti18sr5oDUpwDRBbWRTez3q3dtgcxEBIrzjWhyjt5waSWPhV\nY7rlU04HHJm8CQajxqrCm6FgDkOirvA2ERSUV/N6XuVNnkVisO2LNZJ44Mo6\nO+qZdhoyxfKiyDeU6rv/lIdHzL+lPls+FOqbgOVG+F4wXEdiB4llJMBJzFhl\nzM6+s8Bb0YSn1gSyQGic5P1vlK8t54pRR0cBsxAHuSFucUa0rwsftKHPBz0V\neUKMKWlYorCKjodtdRMdhGhtccwGT7QC2EDhd8cho4Hdyid0ekoKvMsN0K7X\n9QltAEN7uiD+d5NNdeCysTI8tltQ8sb8nzMMw1EfA7gla7riEjZ0L7DKToBB\nPMih0OLv0ehfzzfVE0eWENisKo/1WxPFHVQfDbVNkARkWB9mD5YS+w67IM+F\nVj45\r\n=PYxh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+FKCZGUFB9r5u01z4TPFy9i3/580XqP0jVXVVg9jcgwIgWZlxdxKBXBP1DRY87xrzNgDf4gvpkU/NlDQxuc4C20g="}]},"maintainers":[{"name":"detzi","email":"chris@eightshapes.com"},{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},{"name":"nathanacurtis","email":"nathan@eightshapes.com"}],"_npmUser":{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esds-token-compiler_0.4.1_1566246204208_0.6536497405095849"},"_hasShrinkwrap":false},"0.4.2":{"name":"@eightshapes/esds-token-compiler","version":"0.4.2","description":"Given a source .yaml file and a token namespace this cli will convert the yaml file to .json and .scss formats and output the results to the specified `dest`.","main":"src/index.js","bin":{"compile-tokens":"bin/compile-tokens"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"publishConfig":{"access":"public"},"keywords":["cli","design system","compile-tokens","tokens"],"author":{"name":"Kevin Powell","email":"kevin@eightshapes.com"},"license":"ISC","devDependencies":{"eslint":"^6.1.0","eslint-config-prettier":"^6.0.0","eslint-plugin-prettier":"^3.1.0","prettier":"^1.18.2"},"dependencies":{"arg":"^4.1.1","chalk":"^2.4.2","chokidar":"^3.0.2","esm":"^3.2.25","flat":"^4.1.0","fs":"0.0.1-security","js-beautify":"^1.10.2","listr":"^0.14.3","mkdirp":"^0.5.1","path":"^0.12.7","yamljs":"^0.3.0"},"gitHead":"5534b7cc4725e1c1ad296ad481f992bcd6a669de","_id":"@eightshapes/esds-token-compiler@0.4.2","_nodeVersion":"10.15.3","_npmVersion":"lerna/3.16.4/node@v10.15.3+x64 (darwin)","dist":{"integrity":"sha512-mg1SNU/jrVbrwYFZYnbND1rrt/OfUm6peQFKfsaUntJsjxpZW0iwx114bIvLafW2O1GmAAq1sSKDKsmpVlyVww==","shasum":"12e8411dcfaa44548410d510e5126c62d5e144b7","tarball":"https://registry.npmjs.org/@eightshapes/esds-token-compiler/-/esds-token-compiler-0.4.2.tgz","fileCount":6,"unpackedSize":16733,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdWw2WCRA9TVsSAnZWagAAixoP/Amll6Bc/WdCsidqkIIZ\nyw8xAIFgiUOIM1aZA3rKeb2XQO3OArigQDqrFIDhyo4oMC1pWSCSrKshsAJI\noT3nK9VDtDFnssdndw+x9DTLbGG86lfzZCmWb9J/EccozmONLV6XFMch5U0A\nxTJGw7K6MyD6ZmFdCyEwbR6S6ZTznk2qbD3gk8ZV4LMKPvVATJFQ0t0M1R+b\n2C1ZF8kbR3cQxPtphBcKtqsoTtWOt+2TdFxqQrMq0mEvIRYc1zcv71x1jgRV\nqMA3o4133VN4JIpG9RkaUgkSQMcbjWYK4lZ5u4nq7RKQC1lbeTq6l7bQtOoy\nRn6EAcujcfacNfdXKCvHgReqEYwxD0VpYdfHAyysgz2ZNeaJtBh3D2+XN6QL\nEb4VOQhzTC6GZxoSRfX1T7fZMeCoyG7leq2QB+qMX3WMGOzJ3hxfX7WuqUCO\nZVLKPAo/W7TZXL38dIduMX0hkZCWj2LPBh2veF/ZheTSVoWD/9Bh5RilYXfU\n6yRRiuNnlJmaZIDRvZeoFvFPfekn//BleGVFBlr7A/yJjaoICczgED0HpEoA\nlrkGDVOI6ecR0haKaM+OBHgiwApcxVeCmZhMkQDGs3/QZsknRUYnyzGpy/O/\ng9xG2HPzjyE4OVEE6H24MI9j1jMKZae8rdn634LMqAQqwxNgrlkCa90/eAfu\nzdXl\r\n=Tzj4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGam7xpirhfWaraf0Q4Ftj+OWCIin1AHCCsJtdxsN423AiEAoiXg+0RbXKDFl3bGysiw3fyK5O9TqvY5K6N4U0+hNWs="}]},"maintainers":[{"name":"detzi","email":"chris@eightshapes.com"},{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},{"name":"nathanacurtis","email":"nathan@eightshapes.com"}],"_npmUser":{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/esds-token-compiler_0.4.2_1566248342052_0.11339847475413278"},"_hasShrinkwrap":false}},"time":{"created":"2019-08-09T03:00:32.524Z","0.2.0":"2019-08-09T03:00:32.898Z","modified":"2022-04-05T06:59:46.053Z","0.3.0":"2019-08-09T19:35:12.630Z","0.4.0":"2019-08-15T20:08:29.873Z","0.4.1":"2019-08-19T20:23:24.320Z","0.4.2":"2019-08-19T20:59:02.158Z"},"maintainers":[{"name":"detzi","email":"chris@eightshapes.com"},{"name":"kevinmpowell","email":"kevinmpowell@gmail.com"},{"name":"nathanacurtis","email":"nathan@eightshapes.com"}],"keywords":["cli","design system","compile-tokens","tokens"],"author":{"name":"Kevin Powell","email":"kevin@eightshapes.com"},"license":"ISC","readme":"# Token compiler\nGiven a source .yaml file and a token namespace this cli will convert the yaml file to .json and .scss formats and output the results to the specified `dest`.\n\n## Features\n* In addition to the generation of scss variables a complete sass map structure of all the tokens will be generated.  \n* String interpolation of yaml variables is possible (enhancement of default YAML parsing)\n  * Example, note the `!{}` syntax used to denote token string interpolation:  \n\n```\n  border :\n    selected :\n      width : &border-selected-width 5px\n      on-white : \"solid !{*border-selected-width} !{*color-teal-30}\"\n```\n\n## Usage\nCall directly using `npx`:\n```\nnpx @eightshapes/esds-token-compiler --src=path/to/tokens.yaml --dest=path/to/desired/destination --token-namespace=myds --format=scss --format=json\n```\n\nAlternatively, install the cli in your project and wire it up to an npm script:\n```\nnpm install @eightshapes/esds-token-compiler\n```\n\n```\npackage.json\n\n{\n  \"scripts\": {\n    \"compile-tokens\": \"compile-tokens --watch --src=path/to/tokens.yaml` --dest=path/to/desired/destination --token-namespace=myds --format=json --format=scss\"\n  }\n}\n```\n\nThen run in your project via npm:  \n`npm run compile-tokens`\n\n### CLI Parameters\n| Parameter | Default | Description |\n| --- | --- | --- |\n| `--src` | `tokens/tokens.yaml` | The path to the source yaml file containing tokens to be compiled. |\n| `--dest` | `tokens` - The defaults will write compiled tokens to the same directory as the source yaml file. | The path to a directory where compiled tokens should be created. The generator will create this directory if it does not exist. |\n| `--token-namespace` | `esds` | The prefix to be added to all tokens. For example a value of `mds` will result in scss variable names like `$mds-color-black`, and `$mds-font-size-1x`. |\n| `--format` | `['scss', 'json']` | The desired output formats for tokens. `--format` can be specified multiple times to generate multiple formats. By default JSON and SCSS outputs will be created. |\n| `--watch` | `false` | If provided, the source yaml file will be watched and changes to that file will re-trigger the compilation process.  |\n| `--scssOutputFilename` | `false` | If provided, this is the name of the compiled `.scss` file. This will be combined with the `--dest` arg to generate the full output filepath. By default the name of the `--src` file will be used as the name for the compiled `.scss` file |\n| `--jsonOutputFilename` | `false` | If provided, this is the name of the compiled `.json` file. This will be combined with the `--dest` arg to generate the full output filepath. By default the name of the `--src` file will be used as the name for the output `.json` file |\n\n#### CLI Usage Examples\nTo watch a source file and generate only scss:\n\n```\ncompile-tokens --watch --format=scss --src=/my/tokens-directory/mytokens.yaml --dest=/my/tokens-directory\n```\n\nGenerating JSON, no watching with a namespace of \"zds\".\n\n```\ncompile-tokens --format=json --src=tokens.yaml --dest=./ --token-namespace=zds\n```\n\n## Source file format and output\nGiven a `--token-namespace=esds` arg and a `tokens.yaml` file like this:\n\n```\ncolor :\n  white : &color-white \"#FFFFFF\"\n  black : &color-black \"#000000\"\n  orange :\n    82 : &color-orange-82 \"#D24B00\"\n    91 : &color-orange-91 \"#E85200\"\n    93 : &color-orange-93 \"#EEAC8D\"\n  neutral :\n    05 : &color-neutral-05 \"#0D0D0D\"\n    15 : &color-neutral-15 \"#262626\"\n    25 : &color-neutral-25 \"#404040\"\n    42 : &color-neutral-42 \"#6B6B6B\"\n    53 : &color-neutral-53 \"#888888\"\n    70 : &color-neutral-70 \"#B3B1B1\"\n    80 : &color-neutral-80 \"#CCCACA\"\n    90 : &color-neutral-90 \"#E6E3E3\"\n    95 : &color-neutral-95 \"#F3F1F1\"\n\ntext-color :\n  brand : *color-orange-91\n  primary :\n    on-white : *color-neutral-05\n    on-dark : *color-white\n  secondary :\n    on-white : *color-neutral-53\n    on-dark : *color-neutral-53\n```\n\nThe compiler will create this scss file:\n\n```\n// DO NOT EDIT: This file is automatically generated by a build task\n\n$esds-color-white: #FFFFFF !default;\n$esds-color-black: #000000 !default;\n$esds-color-orange-82: #D24B00 !default;\n$esds-color-orange-91: #E85200 !default;\n$esds-color-orange-93: #EEAC8D !default;\n$esds-color-neutral-5: #0D0D0D !default;\n$esds-color-neutral-15: #262626 !default;\n$esds-color-neutral-25: #404040 !default;\n$esds-color-neutral-42: #6B6B6B !default;\n$esds-color-neutral-53: #888888 !default;\n$esds-color-neutral-70: #B3B1B1 !default;\n$esds-color-neutral-80: #CCCACA !default;\n$esds-color-neutral-90: #E6E3E3 !default;\n$esds-color-neutral-95: #F3F1F1 !default;\n\n$esds-text-color-brand: #E85200 !default;\n$esds-text-color-primary-on-white: #0D0D0D !default;\n$esds-text-color-primary-on-dark: #FFFFFF !default;\n$esds-text-color-secondary-on-white: #888888 !default;\n$esds-text-color-secondary-on-dark: #888888 !default;\n\n$esds-namespace: \"esds\" !default;\n$esds-tokens: (\n    'color': (\n        'white': $esds-color-white,\n        'black': $esds-color-black,\n        'orange': (\n            '82': $esds-color-orange-82,\n            '91': $esds-color-orange-91,\n            '93': $esds-color-orange-93\n        ),\n        'neutral': (\n            '5': $esds-color-neutral-5,\n            '15': $esds-color-neutral-15,\n            '25': $esds-color-neutral-25,\n            '42': $esds-color-neutral-42,\n            '53': $esds-color-neutral-53,\n            '70': $esds-color-neutral-70,\n            '80': $esds-color-neutral-80,\n            '90': $esds-color-neutral-90,\n            '95': $esds-color-neutral-95\n        )\n    ),\n    'text-color': (\n        'brand': $esds-text-color-brand,\n        'primary': (\n            'on-white': $esds-text-color-primary-on-white,\n            'on-dark': $esds-text-color-primary-on-dark\n        ),\n        'secondary': (\n            'on-white': $esds-text-color-secondary-on-white,\n            'on-dark': $esds-text-color-secondary-on-dark\n        )\n    ),\n    'namespace': $esds-namespace\n);\n\n@function esds-token($keys...) {\n    $map: $esds-tokens;\n    @each $key in $keys {\n        $map: map-get($map, $key);\n    }\n    @return $map;\n}\n```\n\nAnd this JSON file:\n\n```\n{\n    \"esds_tokens\": {\n        \"color\": {\n            \"white\": \"#FFFFFF\",\n            \"black\": \"#000000\",\n            \"orange\": {\n                \"82\": \"#D24B00\",\n                \"91\": \"#E85200\",\n                \"93\": \"#EEAC8D\"\n            },\n            \"neutral\": {\n                \"5\": \"#0D0D0D\",\n                \"15\": \"#262626\",\n                \"25\": \"#404040\",\n                \"42\": \"#6B6B6B\",\n                \"53\": \"#888888\",\n                \"70\": \"#B3B1B1\",\n                \"80\": \"#CCCACA\",\n                \"90\": \"#E6E3E3\",\n                \"95\": \"#F3F1F1\"\n            }\n        },\n        \"text-color\": {\n            \"brand\": \"#E85200\",\n            \"primary\": {\n                \"on-white\": \"#0D0D0D\",\n                \"on-dark\": \"#FFFFFF\"\n            },\n            \"secondary\": {\n                \"on-white\": \"#888888\",\n                \"on-dark\": \"#888888\"\n            }\n        },\n        \"namespace\": \"esds\"\n    }\n}\n```\n","readmeFilename":"README.md","description":"Given a source .yaml file and a token namespace this cli will convert the yaml file to .json and .scss formats and output the results to the specified `dest`."}