{"_id":"s-expression.js","_rev":"5-809fac0731e80b5cb3890c658b86885d","name":"s-expression.js","dist-tags":{"latest":"0.6.4"},"versions":{"0.4.0":{"name":"s-expression.js","version":"0.4.0","description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","main":"index.js","scripts":{"publish":"npm publish --access public","test":"tape ./tests/*.js | tap-spec","test-browser":"browserify ./tests/all.js | tap-closer | smokestack -b chrome | tap-spec","docs-readme":"documentation readme index.js --section=API","docs-html":"documentation build index.js -f html --config ./documentation.yml --theme ../S-Expression.JSDOC/src/default_theme/  -o ../S-Expression.JSDOC/public","docs-md":"documentation build index.js -f md"},"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"author":{"name":"Nikyle Nguyen"},"license":"Unlicense","bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"homepage":"https://github.com/NLKNguyen/S-Expression.JS","devDependencies":{"browserify":"^17.0.0","documentation":"^13.2.5","faucet":"0.0.1","json-colorizer":"^2.2.2","smokestack":"^3.6.0","tap-closer":"^1.0.0","tap-spec":"^5.0.0","tape":"^5.6.1","wd":"^1.14.0"},"dependencies":{},"gitHead":"545c9cfa3f29b647c755a7659aeeb8c7e5cf9670","_id":"s-expression.js@0.4.0","_nodeVersion":"17.8.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-GZ3NKxhWE+lgWyP41tkx4AB3ANlYR1pa72lEJi/AHRL4cbRTy770RzbGD9q6fsPPwdleq+d3mTQYs4fr68Y2Ng==","shasum":"7589fdb5e54fcbe61d9dc72e6ab289d1a1f46b90","tarball":"https://registry.npmjs.org/s-expression.js/-/s-expression.js-0.4.0.tgz","fileCount":4,"unpackedSize":44974,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbYkpSXmbRUF7k02s3QGglXcwgRQu3be2urQuTJZxd0wIhAKDoQ096dsTd1h9Ko/FxgdL1UWwvR21Am525Ti8KE8MU"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjYaq6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjDw/+IrD5KBiWw312V3PSsg5yWt1qPC31FL1OUKQHwh6B77QC/3Ks\r\n1czCVjAixKKxr7c2UCy1FztAP9+1oueQWpqXsiTexCQEba3EILoB3t9dok7C\r\nRo1cIvGMpv4trHzbsEEaXqZUmj3AIX/Ax3QXSRPHZAIZEKP4BTM/WoT6kmy0\r\nvM/tZ3xEn86gA5JWsZrgIxGJT+Yz2pEsu8T6rxMjmR6xv4owpxBVhmxTh5ui\r\nd/GHGzGqHocpA7TABQP34c6abUQJJaX4nfV96ReWRfry+JIASpGwvqbrqXSu\r\nRJV1gJAFySzeXCDFNGqypUwwmOf3dZnWvP8sJIA4cf7pwP6sM4V7yG7R00qt\r\nykIuxhznqy+cxL+CHZX9V/3a8xEnLAihrn/gUnabgf2wlsZOx85QPKHD/J1C\r\nvXThXjgtQbU94ZK2Mtj+0dJSiUqQLVTPPlwNOqAyGq0ZTwTOmpOwgAnXvg6q\r\nEY2pnBgDWE7NJJOhUnDHMkO6yaJwycxa80xv54wShj+0ki7sWeRjTX5XMg4w\r\nYVWFY5oOORk/3VqTkSoVa1e+7xNrKmdaVaeE9FhRS4W+0ZdfOZ0f475TMHW5\r\nGyufppfpU2hj5H0FRLFWzo2K0VsIww3F09fLNI9/JY+iRDfQat+rsDtnV1zb\r\nK6ymg3j09olIDYnXDXPu/SG4qqmh/CV32SY=\r\n=C2XM\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nikyle","email":"NLKNguyen@MSN.com"},"directories":{},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-expression.js_0.4.0_1667345081970_0.652579797047693"},"_hasShrinkwrap":false},"0.6.0":{"name":"s-expression.js","version":"0.6.0","description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","main":"index.js","scripts":{"test":"tape ./tests/*.js | tap-spec","test-browser":"browserify ./tests/all.js | tap-closer | smokestack -b chrome | tap-spec","update-readme-api":"documentation readme index.js --section=API","process-readme":"code-formation --scan README.md"},"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"author":{"name":"Nikyle Nguyen"},"license":"MIT","bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"homepage":"https://github.com/NLKNguyen/S-Expression.JS","devDependencies":{"browserify":"^17.0.0","code-formation":"^0.6.2","documentation":"^13.2.5","faucet":"0.0.1","json-colorizer":"^2.2.2","smokestack":"^3.6.0","tap-closer":"^1.0.0","tap-spec":"^5.0.0","tape":"^5.6.1","wd":"^1.14.0"},"dependencies":{},"gitHead":"188c7017f87c02b3769438325d0bf6ddba171881","_id":"s-expression.js@0.6.0","_nodeVersion":"17.8.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-KMExH598HQRcGKGt+MPbg33TPayz3JSFQSTCXCAX/ajymNyto0N2Re7nICN3gNAtAR13lo2hK9nCnA2p9GhGCw==","shasum":"7be5d3d0db9d71c5a623c22856179323cf1ff43b","tarball":"https://registry.npmjs.org/s-expression.js/-/s-expression.js-0.6.0.tgz","fileCount":4,"unpackedSize":49686,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTybONpK0OjebraMuusJEizXiFnFrtY4QV7XHd+zuCswIhAIv9Dhdj+q6rCcxXQ2ackl+90NbhGbj9JI40bZl7dA5+"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMddyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrxJBAAiSEdDQry/focgS3A5pdkJxmWv16S0xR1KTZjGBN8eB8MfQ8d\r\na4HE5zU2k77LbHB9sh/F/sWyMrr13ebZcj/6vRdjnvAgtcU9H+76uDDS1qLV\r\nFQLKWa1C5+rngbZ9e6URMqpiXAzlx1/+2eMBAkS3sZFQDPmLNF3mgT62uKQ1\r\n+EFX+LAJMosNZtz/DBsM7VNrGo/12wtQb4i5ZNvb/Y5iQmLSu9EfFel0HWOf\r\ncGh96ojyrr+FCuXXTVr3QWE/98wWIve0+c+5kEQ34OgEaKeJH3T2XDvwFxh6\r\ne/lZtIkEVR/YMH2xeqPtjzCK8B62yZ+AQn1JPCyKHaykem+yTnlxAecbNSGy\r\nzAI4piFhq/Qvav4kbIW6t6qgDGEaAzLgMt2p1KP/X6M2FZxSaczQB//5MWZ+\r\nj6hS/3jb97Ds4a5GrDkjYTaHyqmfoXDGF9Gnf3YWxqBH/Qvenb2N83YjyS6d\r\nHP1RAaEKTY9a+Xcb51rRIzZ2MK46QSy10vuc2/hheQiPEZwHgI2DRQUceYlG\r\n3rrtwPrXOBADZqhxOkyp8YqALY9sEq7sLE3RzxygONsEDR6wJYx22FGWgyd2\r\nryX5YB/trJ+IFnYWhVI7auElg0cHJyQLnwz9a4fTx/ay++eh+n95be7b7C+M\r\nOoxHx79r18Qe21BeXO6vhkZU8Adts1g8z24=\r\n=2Qds\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nikyle","email":"NLKNguyen@MSN.com"},"directories":{},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-expression.js_0.6.0_1680988018069_0.12664368425968364"},"_hasShrinkwrap":false},"0.6.1":{"name":"s-expression.js","version":"0.6.1","description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","main":"index.js","scripts":{"test":"tape ./tests/*.js | tap-spec","test-browser":"browserify ./tests/all.js | tap-closer | smokestack -b chrome | tap-spec","update-readme-api":"documentation readme index.js --section=API","process-readme":"code-formation --scan README.md"},"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"author":{"name":"Nikyle Nguyen"},"license":"MIT","bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"homepage":"https://github.com/NLKNguyen/S-Expression.JS","devDependencies":{"browserify":"^17.0.0","code-formation":"^0.6.2","documentation":"^13.2.5","faucet":"0.0.1","json-colorizer":"^2.2.2","smokestack":"^3.6.0","tap-closer":"^1.0.0","tap-spec":"^5.0.0","tape":"^5.6.1","wd":"^1.14.0"},"dependencies":{},"gitHead":"188c7017f87c02b3769438325d0bf6ddba171881","_id":"s-expression.js@0.6.1","_nodeVersion":"17.8.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-RrVaaBz+49XmzrVzDcJMTCi1J2vttlrZ6yGMVjMBBrcgw/WOlC/EMkZk5RCjsv1no34XqhCVxwWF0tU4zu05rw==","shasum":"fa4e1de2ddb1bec2a028f0a2296ac60654746840","tarball":"https://registry.npmjs.org/s-expression.js/-/s-expression.js-0.6.1.tgz","fileCount":4,"unpackedSize":49694,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDtS4TsILLRGCCTV1LWNy8cBsX0Uud/zkxxXcGaUHMHWAiEA0L6YEa4rw+kS+yhkYIuLTEtRzgK0jXuBl8GkK+WygJg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMdn9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp2+RAAn2nFZ/R9v4DdZGulYfJOA2YBU6/lMxX47n7l0Sx9bEuiWYZy\r\nefnMNxWcJ0dNiMvUqzK00FQeIs16i9Eh43EsPmFiz7lAkXFUGWzqs7fOtoNl\r\nH4mNUqC6Dw3Aqv4EkqPio9W1bkSlH66OEVEhshagQmfS0H+SX1oexSx4ZjUJ\r\n6bRHm+3H+6DK25DlCsuWseHhNeVhtxuzSU7gayCg4T1Hqz4xiP0gLrOAJiNz\r\nkyeiRdE9IiqUraW4I6MnGxS1wVzbipld8dCJtYhyxoo8NjhGqIZvmWmAjt0L\r\nsWA9TV2DutcL7zDCmLFiNyzaZhBxJZVgLIeuiwVC6pIAL9E9xlNodzfYLWJs\r\ncryi7rECaLRytCBHr4Hv1cPTQ/+Ugpk9jesJc3I0+b0bHOqyLXo8bugCuraj\r\nlbi1m6c5874xXntfmRT66Cb5uUbmYeRDjXmyp12kbecUYnbTsdYqWMYzu7ok\r\nQfYnO7ygoetN0I3h4mdvr2eT58GDDlJ5r6cBoY8ij+arcYpKAwvI+7xT/5B0\r\naC9rBy3CGtdF0xllavQmm8gRoTwFUyRvEJ1SWl5vPI6WmwBmj31tTKAx0H4K\r\nP5+PbT93h/vM8WLhAM78xWJ6jiCmPeP8NxfqGYee/pnzbr9VAJszrbufxfIl\r\nrbDooJBczSnwMaY0lCE2X2JdRhp0hqWMxtI=\r\n=Q5fp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nikyle","email":"NLKNguyen@MSN.com"},"directories":{},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-expression.js_0.6.1_1680988669779_0.7856699690323796"},"_hasShrinkwrap":false},"0.6.2":{"name":"s-expression.js","version":"0.6.2","description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","main":"index.js","scripts":{"test":"tape ./tests/*.js | tap-spec","test-browser":"browserify ./tests/all.js | tap-closer | smokestack -b chrome | tap-spec","update-readme-api":"documentation readme index.js --section=API","process-readme":"code-formation --scan README.md"},"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"author":{"name":"Nikyle Nguyen"},"license":"MIT","bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"homepage":"https://github.com/NLKNguyen/S-Expression.JS","devDependencies":{"browserify":"^17.0.0","code-formation":"^0.6.2","documentation":"^13.2.5","faucet":"0.0.1","json-colorizer":"^2.2.2","smokestack":"^3.6.0","tap-closer":"^1.0.0","tap-spec":"^5.0.0","tape":"^5.6.1","wd":"^1.14.0"},"dependencies":{},"gitHead":"ca1723a68cb7a12ec36352f6e0ea1454b08961ee","_id":"s-expression.js@0.6.2","_nodeVersion":"17.8.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-rVfvgonS3qlHNeCBPtsXE8p4Ng/8QOYCCsOmRtvTo9YMlLTN7hf97zEFsHS51T2LvmBuCYmqR3WUvpMrnDWoAA==","shasum":"af094849ec2f1ab4f1e640d186f5edbd44c660ef","tarball":"https://registry.npmjs.org/s-expression.js/-/s-expression.js-0.6.2.tgz","fileCount":4,"unpackedSize":48668,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDysR28pC5eilS0SxE9KCGeg7LVvboI7fuBmVI1h2JPXQIgem4VdvE0w1PaDxh9WQGRz7cP1fw2bSItP+dOHddmiNE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMgTwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVLQ//Rd/uPy0qFo01Rk7oXGWwXOfe7XoE1pCDSXibZk8lkg1TieTf\r\nkRF7RxaWN8vsq2ZQzRCjqIxUNpqchm9HTlfcTnr0CQZtlcNq+3MnIg2nqo3G\r\neE2ar9YKBkhyGIl8S7gvO+aQ5LvJ65UxuvGS2wi+J9qrPepymZActtuLI1sc\r\nV7+Nlq1bWHqcWNXuP3/FW7dAy9YjO81+boFo1P54Ih8tNExRvPwG858Va58f\r\nLo2olvkw//5n+U1quUpI5IYgOcB4mWVssKYqtx62hpOGgg9IBRmDWa57rQBS\r\ngFib97C18avQRADByJXBRSooMdl/64KnOFTaloyG1SZ3ehmUoDbfP591QxNI\r\nazuEhF/tpNb/ltNbcbEWTapHv47g+LNKIUu4Bd8WYwqORCDPhidXlUX3ctoS\r\njMajNLaou3UrUAwo8E10tRl1Z2GSnkqPbDbbISO1TlksQ2565i+FLSxghtYK\r\nVWjqFgt+jYYo5VHUIPv20nRzkWaJPO05t/uTL1sP4IAzUfvmiebaGuwBuTgu\r\nYtO74KTknu3aGsTY/ZpAQzJKPNnnL/a41tRlohUk/MCgZb2LilzkQHnqWBqm\r\n9OO30Ur84E44uX/g+7oGku+1RQ+yfIDAH0kpCwFvMptu527k75S5mHx0Aak6\r\ncPBHEqSwnwrQsdG0gIbifzbHMSwJQ7PHZkw=\r\n=lqtt\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nikyle","email":"NLKNguyen@MSN.com"},"directories":{},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-expression.js_0.6.2_1680999664357_0.36195602674257543"},"_hasShrinkwrap":false},"0.6.3":{"name":"s-expression.js","version":"0.6.3","description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","main":"index.js","scripts":{"test":"tape ./tests/*.js | tap-spec","test-browser":"browserify ./tests/all.js | tap-closer | smokestack -b chrome | tap-spec","update-readme-api":"documentation readme index.js --section=API","process-readme":"code-formation --scan README.md"},"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"author":{"name":"Nikyle Nguyen"},"license":"MIT","bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"homepage":"https://github.com/NLKNguyen/S-Expression.JS","devDependencies":{"browserify":"^17.0.0","code-formation":"^0.6.2","documentation":"^13.2.5","faucet":"0.0.1","json-colorizer":"^2.2.2","smokestack":"^3.6.0","tap-closer":"^1.0.0","tap-spec":"^5.0.0","tape":"^5.6.1","wd":"^1.14.0"},"dependencies":{},"gitHead":"e402ad55867f92275e8b002163f60098f1eb3f91","_id":"s-expression.js@0.6.3","_nodeVersion":"17.8.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-gsZs+okekJNAqLHSvPGjhjYWYnENNT1pj/sjAioA9Skb/tSI5cvppysfqpi04z+cGafPvVXcOG1EJRJZsiW8+A==","shasum":"7eb8bf63bc72d9d91a6b59663cb9f7b876a10f77","tarball":"https://registry.npmjs.org/s-expression.js/-/s-expression.js-0.6.3.tgz","fileCount":4,"unpackedSize":48768,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaxLO7pDInRQf8IDppSdA8hPvJsb03vb1k5pkFiL/sPAIgUlUJDDvtyW2VqMLMBpaewC/WcMlGs5QaS9YV61sP4YE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMl0XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpPuBAAnm/8tMBZkAkTSzWv7mzmrJ+QgW08BK9bj5yIpLQCdMu+1KKR\r\n2/VdJk8rCKiS9aWEekdU/LMpzS4Maa492gYIRcsc5BEYZgn+PttPL7PXbFp0\r\nE0P7C3RiwCMzhmz3RR1/oPR0Km8fAOhCTU89ARuTHyJnoRMkBvSw0Die0yRL\r\nS+LB2+/NvskqnRVSLU22N7z3Pjvyq8omYMNV/gtrOD1Wi1QiRYCaLwi+WxOk\r\nxONeGExnfwwwhyDUhEjqsBD7FoAgSLPTqxYd6TQSvIB0/hmoHC8SXVzjcT8g\r\nWTfHE663A5006uVnsSkFmUlIQkDll9+hsfxxKhxQ17CshlslacsyDseXDWkW\r\nN+n4NWgC0IomBZpGL7LkCmDe5u2z1H4VC18/PJ4rK1+vvlUEnbPX1MdmkDDY\r\n3mApWh6DIo3qBFx4p2gEzoflRfhmphOwWqTDjBqCPKFKZIT4MJQbaVoMTx+N\r\nZpqP9XcXHuqEU3RtYWWHMlEu5Zc59t+2tY1sq6PnSPcFMFiXsBG77zy9dZbK\r\npuBTkhLOQrNVYqA0t1Z6g/pDW7A0RGLlj1s+ZETy5k1GCGKVItNCb0tSX/9M\r\nm/s0lA0jlVQOi/JuhReZn4Wz6sn6+G6a+nzl64/L4SyIOwKdZUXngOTqgTCf\r\nUpafCL90fYdkbYoBZdrdPguTzEzkbS+Wn00=\r\n=M7Uh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nikyle","email":"NLKNguyen@MSN.com"},"directories":{},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-expression.js_0.6.3_1681022231277_0.0005335995749018441"},"_hasShrinkwrap":false},"0.6.4":{"name":"s-expression.js","version":"0.6.4","description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","main":"index.js","scripts":{"test":"tape ./tests/*.js | tap-spec","test-browser":"browserify ./tests/all.js | tap-closer | smokestack -b chrome | tap-spec","update-readme-api":"documentation readme index.js --section=API","process-readme":"code-formation --scan README.md"},"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"author":{"name":"Nikyle Nguyen"},"license":"MIT","bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"homepage":"https://github.com/NLKNguyen/S-Expression.JS","devDependencies":{"browserify":"^17.0.0","code-formation":"^0.6.2","documentation":"^13.2.5","faucet":"0.0.1","json-colorizer":"^2.2.2","smokestack":"^3.6.0","tap-closer":"^1.0.0","tap-spec":"^5.0.0","tape":"^5.6.1","wd":"^1.14.0"},"dependencies":{},"gitHead":"e402ad55867f92275e8b002163f60098f1eb3f91","_id":"s-expression.js@0.6.4","_nodeVersion":"17.8.0","_npmVersion":"6.14.17","dist":{"integrity":"sha512-3HEtulxAMlwfNQW9LVGy57u5VrAooZXXoX2QyBD5BIragTIapDSTcTBWrzY0fzwfEiTFBivmQBaX+iOBqdFjzQ==","shasum":"51a24d2e648575368d150e5f185991cb277aaa1d","tarball":"https://registry.npmjs.org/s-expression.js/-/s-expression.js-0.6.4.tgz","fileCount":4,"unpackedSize":48883,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH6PzVlk6KNVQupuucQ+cYO+3LTc4JI5eJLjTseKuqW2AiEA/DZzQtyKpmfbpemvUFCpeRhle8ZkNmdJUtPsFJlS7Pc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMpExACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp4/BAAlvDX23M1Up7paDiBSQII2FAIU3r319VgeH+ZZ9vHQHrRtMbH\r\n7/a74shshr/V12T2jTIo9Q+x6lz0T62RV8TOhCkQaM40k4+KNcSjEfki+VZJ\r\nJ/cmeMwrw1WiIusjRXTvcye0sVsbgGirF3veynUgC3HdLL0vGhXg32PlExSE\r\nO6HCC523ct3cNMU2eDgBXmAldGz9hpfR7u59C2XSsZ6bz+GgfE4JlxWlcKm2\r\nZ5wGOSbLd+UU2EMi00UImsjk7Cw7ygRmTIXEKqH04rkDPXxACORpCLRtWJA5\r\nRzwjRa6t95RK76lhMwlftRbuaC+yMA6/D4P5zmK81NfwnYGqTTNCHFpIpHUU\r\nrgxBl8AbHNOfYMkaoLt9mZ3i7ci5KYV382xUptl0msN353FUU53hwJoin83m\r\n6Kosn+AxAuNaEEmwVJYSZyucmXn/tl5apgZR7GeIYyZXKAhcQjMYnSpMMTfx\r\nStPURbwPAOLPdJ/ftlsoJGTlX/e4V/MkVD6XXtMxlmEEGGPRzPCaQq1NtBbG\r\nFY9V861t6/gUzSefiSeUTIHVsFdY7RdnR7947UhOLGobcMFHNe5UAC+VSXD6\r\n/XOmqQnFXECqZM5IsLgRKFPsuaxJkijZY3JJonSek+JoTOac9ccMk2PB2e3/\r\nqQDdZdSs/kazBUZTuV/MDpOc2m3FCQ3QU4A=\r\n=mY7k\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"nikyle","email":"NLKNguyen@MSN.com"},"directories":{},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/s-expression.js_0.6.4_1681035568968_0.3678174479713032"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-01T23:24:41.901Z","0.4.0":"2022-11-01T23:24:42.175Z","modified":"2023-04-09T10:19:29.279Z","0.6.0":"2023-04-08T21:06:58.280Z","0.6.1":"2023-04-08T21:17:49.954Z","0.6.2":"2023-04-09T00:21:04.633Z","0.6.3":"2023-04-09T06:37:11.496Z","0.6.4":"2023-04-09T10:19:29.170Z"},"maintainers":[{"name":"nikyle","email":"NLKNguyen@MSN.com"}],"description":"S-Expression Parser, Serializer, and Tree Constructor / Walker Utilities in JavaScript for Browsers and Node.js","homepage":"https://github.com/NLKNguyen/S-Expression.JS","keywords":["sexpression","sexpr","parser","tree","constructor","walker","serializer","deserializer","scheme"],"repository":{"type":"git","url":"git+https://github.com/NLKNguyen/S-Expression.JS.git"},"author":{"name":"Nikyle Nguyen"},"bugs":{"url":"https://github.com/NLKNguyen/S-Expression.JS/issues"},"license":"MIT","readme":"<h1 align=\"center\">S-Expression in JavaScript — DSL Maker's Toolkit</h1>\n<p align=\"center\">\n  <a href=\"https://github.com/NLKNguyen/S-Expression.JS/blob/master/LICENSE\" target=\"_blank\">\n    <img alt=\"License: Unlicense\" src=\"https://img.shields.io/github/license/NLKNguyen/S-Expression.JS.svg?color=blueviolet\" />\n\n  </a>\n\n  <a href=\"https://github.com/NLKNguyen/S-Expression.JS/issues\" target=\"_blank\">\n    <img alt=\"Closed issues\" src=\"https://img.shields.io/github/issues-closed-raw/NLKNguyen/S-Expression.JS.svg?color=yellow\" />\n  </a>\n\n  <a href=\"https://www.patreon.com/Nikyle\" title=\"Donate to this project using Patreon\">\n    <img src=\"https://img.shields.io/badge/support%20me-patreon-red.svg\" alt=\"Patreon donate button\" />\n  </a>\n\n  <a href=\"https://paypal.me/NLKNguyen\" title=\"Donate one time via PayPal\">\n    <img src=\"https://img.shields.io/badge/paypal-me-blue.svg\" alt=\"PayPal donate button\" />\n  </a>\n\n  <a href=\"https://www.amazon.com/gp/registry/wishlist/3E0E6ZS7RQ5GS/\" title=\"Send a gift through my Amazon wishlist\">\n    <img src=\"https://img.shields.io/badge/send%20a%20gift-amazon-darkorange.svg\" alt=\"Amazon donate button\" />\n  </a>\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.buymeacoffee.com/Nikyle\" target=\"_blank\">\n    <img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=45 />\n  </a>\n</p>\n\nS-Expression Parser, Serializer, Interpreter, and Tree Constructor / Walker Utilities in plain JavaScript for browsers and Node.js with <u>zero dependencies</u>.\n\n**Feature Highlights**\n\n*   Parse S-Expression string to Abstract Syntax Tree (AST)\n    *   AST data structure is JSON (ideal for program/data transfer or\n        interpretation).\n\n*   Construct and traverse AST using helper methods\n\n*   Serialize AST to S-Expression string\n\n*   Support LISP-like comment syntax: line comment prefix `;` and block comment\n    guards `#|`, `|#`\n    *   Comments are stripped in the parsing process and therefore not included\n        in AST.\n\n*   Support JSON-compatible value types: `boolean`, `number`, `null`, and\n    `string` with multi-line support and escaped quotation `\\\"`\n\n*   Interpret AST as LISP-like functional notation (a.k.a Cambridge Polish\n    Notation), convenient for making Domain Specific Languages (DSLs) that have\n    similar syntax to LISP dialects (CLIPS, Clojure, Scheme, Racket, etc.).\n\n    *   Define your custom handlers in JS to evaluate expressions in a similar\n        concept like in YACC/Bison or ANTLR but without the out-of-source file\n        for code generation. With S-Expression.js, the minimum grammar is\n        presumed to be LISP-like, so the parsing is taken care of, and all you\n        just need to do is to define the expression evaluators which can be done\n        all in-source.\n\n    *   The default transformed format is also JSON, so if you like, you can\n        defer to another language for the evaluation part. Since this library is\n        self-contained, and because JavaScript is widely supported, you can\n        easily interop it with a sandbox in your application such that you\n        retrieve just the JSON output to evaluate using features available in\n        your host language.\n\n    *   JSON `array` and `object` types are used to represent function forms.\n\n**TL;DR**: jump to [Quick Start](#-quick-start) and hack away\n\n# ⭐ Background\n\n<p>S-Expression is surprisingly a powerful and very simple concept to represent both data and function with minimalist syntax. It was popularized by LISP (a classic programming language that was used heavily in AI research) at the very beginning of computer science, circa 1960, and yet S-Expression is still one of the best ideas around due to its simplicity and extensibility. It contains only lists containing symbols and nested lists, and it's totally up to the programmers to make the meanings out of those symbols and their arrangements. S-Expression is a good choice for many use cases ranging from command format, config file format, small domain-specific language, or full-blown programming language.</p>\n\n<p>S-Expression is so minimal that it resembles an abstract syntax tree (AST), which is the underlying representation of many high-level programming languages when their syntactic sugar code is parsed through the typical language grammars. This appeals to many language designers because they can bypass the typical grammar design in forms such as BNF and instead focus on the core syntax tree to accomplish their main goals for the languages, consequently providing a native/in-language way to manipulate the syntax tree thus enables more dynamic capability and easier meta-programming.</p>\n\n<p>These are some of the reasons why there are so many popular languages based on S-Expression such as Lisp, Clojure, Scheme, Racket, and their families of languages. More recently, WebAssembly, the 4th language of the Web, also embraces S-Expression for its textual form. Once you're familiar with S-Expression and its flexibility, it becomes useful knowledge in your development toolkit and can come in handy as an obvious choice over any ad-hoc input parsing that often comes up in your career as a developer.</p>\n\n<p>This project makes working with S-Expression in JavaScript easy, and the author's intention is to make this library a toolkit for creating domain-specific languages that boost productivity and help simplify the coding interface for less technical users.</p>\n\n# 💡 Why make domain-specific languages?\n\nAll usual reasons for DSLs apply. Here are just a few use cases:\n\n*   Custom data format that is more compact and easier to write than the target\n    format schema\n\n*   Custom command format for system interaction or utility (e.g. REPL shell, chat bot command, etc.)\n\n*   Abstract away low-level/repetitive JS code so that developers/users can write\n    in a high-level language for the business logic / query.\n\n*   Allow clients to send a remote procedure in a safe DSL so that the server can\n    interpret just what is allowed.\n\n*   Alternative to adding programming logic to a dumb data format like\n    JSON/YAML/XML when it started as a quick workaround at first, but then the\n    logic grows.\n\n# 🛠️ Installation\n\n**Option 1: install latest release on NPM to your Node.js project**\n\n```shell\nnpm install --save s-expression.js\n```\n\n**Option 2: install from this repository source code**\n\n```shell\ngit clone https://github.com/NLKNguyen/S-Expression.JS\n\ncd S-Expression.JS\n\n# make it globally available on your machine; to undo: npm unlink\nnpm link\n\n# then from your own project directory, make a link to this library; similarly to undo: npm unlink s-expression.js\nnpm link s-expression.js\n\n# you can now require it in your JS source just like normal, e.g. const SExpr = require(\"s-expression.js\")\n```\n\n# 🧪 Test\n\nRun all test cases\n\n```shell\nnpm run test\n```\n\nRun a specific set of test cases\n\n```shell\nnpx tape ./tests/parse.js | npx tap-spec\n\nnpx tape ./tests/interpret.js | npx tap-spec\n\nnpx tape ./tests/helpers.js | npx tap-spec\n```\n\nPiping to `tap-spec` is optional, but it makes the output easier to read.\n\n<!--\n# Publish\n\n```shell\nnpm publish --access public\n```\n\n# Mark release tag\n\nUse IDE to mark tag. Then push to repos:\n\n```shell\ngit push origin {tag_name}\n```\n-->\n\n# 🚀 Quick start\n\nAPI documentation is embedded at the bottom for reference.\n\n### `parse(str: string): Array< number | string | Array >`\n\nTurns a raw S-expression string into JSON that represents an abstract syntax tree in which:\n\n*   An expression is parsed as a JSON array\n*   A number is parsed as a JSON number\n*   A double-quoted string is parsed as a JSON string wrapped with literal double quotations, e.g. `\"\\\"example string\\\"\"`\n    *   `S.valueOf(\"\\\"example string\\\"\")` returns `\"example string\"` JSON string value\n*   A boolean (`true`, `false`, `#t`, `#f`) is parsed as a JSON string of the value, e.g. `\"true\"`\n    *   `S.valueOf(\"true\")` returns `true` JSON boolean value\n    *   Tokens that indicate boolean values can be configured\n*   A null (`null`, `#nil`) is parsed as a JSON string of the null value, e.g. `\"null\"`\n    *   `S.valueOf(\"null\")` returns `null` JSON value\n    *   Tokens that indicate null can be configured\n        *   Note: `undefined` is not configured, so it's parsed as a normal atom.\n*   Any other token is parsed as a JSON string of the identifier, e.g. `\"a\"`\n    *   `S.valueOf(\"a\")` returns `\"a\"` JSON string value\n\nIf the return is not an array (can check with `S.isExpression`), then it's invalid.\n\n<!-- You can change the defaults of what tokens mean null or boolean value. -->\n\n0.  **Initialize**\n\n```js\nconst SExpr = require(\"s-expression.js\")\nconst S = new SExpr()\n```\n\n1.  **Simple parsing root S-expression as a list**\n\n```js\nS.parse(`(1 2 3)`) // [1, 2, 3]\n```\n\n2.  **Simple tree-walk on root expression with mixed value types**\n\n```js\nconst ast = S.parse(`( 1 \"a \\\\\"b\\\\\" c\" true null d (e f ()) )`)\n\nif (S.isExpression(ast)) {\n    console.log(`ast is an expression: ${JSON.stringify(ast)}`)\n} else {\n    throw Error(`ast is not a valid expression`)\n}\n\nlet index = 0\nfor (let e of ast) {\n  if (S.isNumber(e)) {\n        console.log(`ast[${index}] is a number with value: ${S.valueOf(e)}`)\n  } else if (S.isString(e)) {\n        console.log(`ast[${index}] is a string with value: ${JSON.stringify(S.valueOf(e))}`)\n  } else if (S.isBoolean(e)) {\n        console.log(`ast[${index}] is a boolean with value: ${S.valueOf(e)}`)\n  } else if (S.isNull(e)) {\n        console.log(`ast[${index}] is a null with value: ${S.valueOf(e)}`)\n  } else if (S.isAtom(e)) {\n        console.log(`ast[${index}] is an atom with id: ${S.valueOf(e)}`)\n  } else { // S.isExpression(e)\n        console.log(`ast[${index}] is an expression: ${JSON.stringify(e)}`)\n  }\n  index++\n}\n```\n\nOutput:\n\n```clj\nast is an expression: [1,\"\\\"a \\\\\\\"b\\\\\\\" c\\\"\",\"true\",\"null\",\"d\",[\"e\",\"f\",[]]]\nast[0] is a number with value: 1\nast[1] is a string with value: \"a \\\\\\\"b\\\\\\\" c\"\nast[2] is a boolean with value: true\nast[3] is null: null\nast[4] is an atom with id: d\nast[5] is an expression: [\"e\",\"f\",[]]\n```\n\nSee `./tests/parse.js` for more parsing examples\n\n## Serialize\n\nTODO\n\nPlease look at the unit tests for use cases in the meantime.\n\n## Interpret\n\nTODO: simple custom DSL example\n\nPlease look at the unit tests for use cases in the meantime.\n\n# 👋 Author\n\n👤 **Nikyle Nguyen**\n\n  <a href=\"https://twitter.com/NLKNguyen\" target=\"_blank\">\n    <img alt=\"Twitter: NLKNguyen\" src=\"https://img.shields.io/twitter/follow/NLKNguyen.svg?style=social\" />\n  </a>\n\n*   Website: <https://dephony.com/Nikyle>\n*   Twitter: [@NLKNguyen](https://twitter.com/NLKNguyen)\n*   Github: [@NLKNguyen](https://github.com/NLKNguyen)\n*   LinkedIn: [@NLKNguyen](https://linkedin.com/in/NLKNguyen)\n\n# 🤝 Contributing\n\nGive a ⭐️ if this project helped you working with S-Expression easily in JavaScript!\n\nContributions, issues and feature requests are welcome! Feel free to check [issues page](https://github.com/NLKNguyen/S-Expression.JS/issues).\n\n## 🙇 Your support is very much appreciated\n\nI create open-source projects on GitHub and continue to develop/maintain them as they are helping others. You can integrate and use these projects in your applications for free! You are free to modify and redistribute any way you like, even in commercial products.\n\nI try to respond to users' feedback and feature requests as much as possible. This takes a lot of time and effort (speaking of mental context-switching between different projects and daily work). Therefore, if these projects help you in your work, and you want to support me to continue developing, here are a few ways you can support me:\n\n*   💬 Following my blog and social profiles listed above to help me connect with your network\n*   ⭐️ Starring this project and sharing with others as more users come, more great ideas arrive!\n*   ☘️ Donating any amount is a great way to help me work on the projects more regularly!\n\n<p>\n\n  <a href=\"https://paypal.me/NLKNguyen\" target=\"_blank\">\n      <img src=\"https://user-images.githubusercontent.com/4667129/101101433-71b7ff00-357d-11eb-8cf2-3c529960d422.png\" height=44 />\n  </a>\n\n  <a href=\"https://www.patreon.com/Nikyle\" target=\"_blank\">\n    <img src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" height=44 style=\"border-radius: 5px;\" />\n  </a>\n\n  <a href=\"https://www.buymeacoffee.com/Nikyle\" target=\"_blank\">\n      <img src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" alt=\"Buy Me A Coffee\" height=44 />\n  </a>\n\n</p>\n\n# 📝 License\n\nCopyright © 2022 [Nikyle Nguyen](https://github.com/NLKNguyen)\n\nThe project is [MIT License](https://github.com/NLKNguyen/code-formation/blob/master/LICENSE).\n\nIt is a simple permissive license with conditions only requiring the preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.\n\n<!--\nThis snippet is used to transform the generated API markdown to include a divider\nIt's idempotent, meaning that it can run multiple times but will not add more\ndividers than necessary.\n\n// $<:AddDivider (LANGUAGE \"nodejs\")\n\nmodule.exports = async (context) => {\n  const regex = /(?<!---)(\\r?\\n\\r?\\n)(###\\s)/gm\n  /*\n    if matched, (\\r?\\n\\r?\\n) => $1\n                (###\\s) => $2\n  */\n\n  return context.INPUT.replaceAll(regex, \"$1---$1$2\")\n}\n\n// $>\n\nThe below blob instruction will transform the rest of this file with the snippet\nAddDivider to add minimum divider to make it easy to read.\n-->\n\n<!-- !API<:TRANSFORM (APPLY (AddDivider)) -->\n\n# API\n\n<!-- Generated by documentation.js. Update this documentation by updating the source code. -->\n\n---\n\n### Table of Contents\n\n*   [SExpr](#sexpr)\n    *   [Parameters](#parameters)\n    *   [interpret](#interpret)\n        *   [Parameters](#parameters-1)\n    *   [stripComments](#stripcomments)\n        *   [Parameters](#parameters-2)\n    *   [parse](#parse)\n        *   [Parameters](#parameters-3)\n    *   [serialize](#serialize)\n        *   [Parameters](#parameters-4)\n    *   [identifier](#identifier)\n        *   [Parameters](#parameters-5)\n        *   [Examples](#examples)\n    *   [isAtom](#isatom)\n        *   [Parameters](#parameters-6)\n        *   [Examples](#examples-1)\n    *   [isEqual](#isequal)\n        *   [Parameters](#parameters-7)\n    *   [expression](#expression)\n        *   [Parameters](#parameters-8)\n    *   [isExpression](#isexpression)\n        *   [Parameters](#parameters-9)\n    *   [boolean](#boolean)\n        *   [Parameters](#parameters-10)\n    *   [isBoolean](#isboolean)\n        *   [Parameters](#parameters-11)\n    *   [isTruthy](#istruthy)\n        *   [Parameters](#parameters-12)\n    *   [isMissing](#ismissing)\n        *   [Parameters](#parameters-13)\n    *   [null](#null)\n    *   [isNull](#isnull)\n        *   [Parameters](#parameters-14)\n    *   [number](#number)\n        *   [Parameters](#parameters-15)\n    *   [isNumber](#isnumber)\n        *   [Parameters](#parameters-16)\n    *   [string](#string)\n        *   [Parameters](#parameters-17)\n    *   [isString](#isstring)\n        *   [Parameters](#parameters-18)\n    *   [valueOf](#valueof)\n        *   [Parameters](#parameters-19)\n    *   [first](#first)\n        *   [Parameters](#parameters-20)\n    *   [second](#second)\n        *   [Parameters](#parameters-21)\n    *   [third](#third)\n        *   [Parameters](#parameters-22)\n    *   [fourth](#fourth)\n        *   [Parameters](#parameters-23)\n    *   [fifth](#fifth)\n        *   [Parameters](#parameters-24)\n    *   [sixth](#sixth)\n        *   [Parameters](#parameters-25)\n    *   [seventh](#seventh)\n        *   [Parameters](#parameters-26)\n    *   [eighth](#eighth)\n        *   [Parameters](#parameters-27)\n    *   [ninth](#ninth)\n        *   [Parameters](#parameters-28)\n    *   [tenth](#tenth)\n        *   [Parameters](#parameters-29)\n    *   [nth](#nth)\n        *   [Parameters](#parameters-30)\n    *   [rest](#rest)\n        *   [Parameters](#parameters-31)\n\n## SExpr\n\nClass of S-Expression resolver that includes parser, serializer, tree\nconstructors, and tree walker utilities.\n\nCreates an instance of SExpr. Optional `options` input for configuring\ndefault behavior, such as how to recognize null, boolean values as it's up to\nthe programmer to decide the syntax. Nevertheless, here is the default that\nyou can override.\n\n```javascript\n{\n truthy: ['true', '#t'],\n falsy: ['false', '#f'],\n nully: ['null', '#nil']\n}\n```\n\n---\n\n### Parameters\n\n*   `options` **any**  (optional, default `{}`)\n\n---\n\n### interpret\n\ninterpret a parsed expression tree (AST) into data structures in according\nto a notation type, currently just \"functional\" notation which is similar\nto LISP dialects such as CLIPS, Clojure, Scheme, Racket, etc.\n\n#### Parameters\n\n*   `expression`\n*   `context`   (optional, default `{}`)\n*   `state`   (optional, default `{scoped:[],globals:{}}`)\n*   `entity`   (optional, default `this.ROOT`)\n*   `E` **any**\n\nReturns **any**\n\n---\n\n### stripComments\n\nstrip comments from S-expression string\n\n#### Parameters\n\n*   `str` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** code which might have comments\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** code without comments\n\n---\n\n### parse\n\nParse a S-expression string into a JSON object representing an expression\ntree\n\n#### Parameters\n\n*   `str` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** S-expression string\n*   `opts` **any** deserializing options (optional, default `{includedRootParentheses:true}`)\n\nReturns **[json](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/JSON)** an expression tree in form of list that can include nested\nlists similar to the structure of the input S-expression\n\n---\n\n### serialize\n\nSerialize an expression tree into an S-expression string\n\n#### Parameters\n\n*   `ast` **any** parsed expression (abstract syntax tree)\n*   `opts` **any** serializing options (optional, default `{includingRootParentheses:true}`)\n*   `level`   (optional, default `0`)\n\nReturns **any**\n\n---\n\n### identifier\n\nCreate an identifier symbol\n\n#### Parameters\n\n*   `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**\n\n#### Examples\n\n```javascript\nconst S = new SExpr()\nconst node = S.expression(S.identifier('a'))\n// ['a']\n```\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** symbol\n\n---\n\n### isAtom\n\nCheck if a node is an identifier, optionally compare to a given name\n\n#### Parameters\n\n*   `e` **any** a node to check\n*   `id` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** optional id name to compare to (optional, default `undefined`)\n\n#### Examples\n\n```javascript\nconst S = new SExpr()\nconst node = S.expression(S.identifier('a'))\nconsole.log(S.isAtom(S.first(node)))\n// true\nconsole.log(S.isAtom(S.first(node, 'a')))\n// true\n```\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it is an identifier\n\n---\n\n### isEqual\n\nCompare whether 2 nodes are identical\n\n#### Parameters\n\n*   `a` **any** a node\n*   `b` **any** another node to compare to\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if they are the same\n\n---\n\n### expression\n\nCreate an expression node\n\n#### Parameters\n\n*   `exps` **rest** optional initialization list of elements\n\nReturns **[json](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/JSON)** a tree node\n\n---\n\n### isExpression\n\nCheck if a node is an expression, and optionally compare to a given\nexpression\n\n#### Parameters\n\n*   `e` **any** a node to check whether it's an expression\n*   `s` **[json](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/JSON)** optional expression to compare to (optional, default `undefined`)\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it's an expression (and equals the compared\nexpression if provided)\n\n---\n\n### boolean\n\nCreate a boolean node with given state\n\n#### Parameters\n\n*   `v` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** boolean value\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a node with name corresponding to a boolean value\n\n---\n\n### isBoolean\n\nCheck if a node is a boolean value, optionally compare to a given state\n\n#### Parameters\n\n*   `e` **any** a node to check whether it's a boolean\n*   `b` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** optional state to compare to (optional, default `undefined`)\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it's a boolean (and equals the given state if\nprovided)\n\n---\n\n### isTruthy\n\nCheck if a node is considered truthy. Anything but an explicit false value\nis truthy.\n\n#### Parameters\n\n*   `e` **any** a node to check if it's truthy\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it's truthy\n\n---\n\n### isMissing\n\nCheck if a node doesn't exist, a.k.a undefined\n\n#### Parameters\n\n*   `e` **any** a node to check if it doesn't exist\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it doesn't exist (undefined)\n\n---\n\n### null\n\nCreate a null node.\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a node with name representing null value\n\n---\n\n### isNull\n\nCheck if a node is null.\n\n#### Parameters\n\n*   `e` **any** a node to check if it's null\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it's null\n\n---\n\n### number\n\nCreate a number node\n\n#### Parameters\n\n*   `n` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** value of the new node\n\nReturns **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** a node with number value\n\n---\n\n### isNumber\n\nCheck if a node is a number\n\n#### Parameters\n\n*   `e` **any** a node to check if it's a number, optionally compare to a given value\n*   `n` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** an optional value to compare to (optional, default `undefined`)\n\nReturns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** true if it's a number (and equals the given value if provided)\n\n---\n\n### string\n\nCreate a string node.\n\n#### Parameters\n\n*   `str` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** string value of the node\n\nReturns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** a node with string value\n\n---\n\n### isString\n\nCheck if a node is a string, optionally compare to a given string.\n\n#### Parameters\n\n*   `e` **any** a node to check if it's a string\n*   `s` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** optional string to compare to (optional, default `undefined`)\n\nReturns **any** true if it's a string (and equals the given string if provided)\n\n---\n\n### valueOf\n\nGet a value content of a symbol (not expression).\n\n#### Parameters\n\n*   `e` **any** a node to extract value\n\nReturns **any** value\n\n---\n\n### first\n\nGet the 1st child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### second\n\nGet the 2nd child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### third\n\nGet the 3rd child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### fourth\n\nGet the 4th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### fifth\n\nGet the 5th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### sixth\n\nGet the 6th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### seventh\n\nGet the 7th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### eighth\n\nGet the 8th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### ninth\n\nGet the 9th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### tenth\n\nGet the 10th child of a node.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** a child node if exists\n\n---\n\n### nth\n\nGet the n-th child of a node. Similar to the shorthand `first`, `second`, `third`, `fourth`, `fifth` ... `tenth`, but at any position provided.\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n*   `n` **[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number)** position of the child node, starting from 1\n\nReturns **any** a child node if exists\n\n---\n\n### rest\n\nSkip the first child node and get the rest\n\n#### Parameters\n\n*   `e` **any** a node to get its child\n\nReturns **any** the rest of the nodes or undefined if the input node is not an expression","readmeFilename":"README.md"}