{"_id":"@aspiesoft/aspiejs","_rev":"3-0dc1001f025ba5426c4a08c18ded35a5","name":"@aspiesoft/aspiejs","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.2":{"name":"@aspiesoft/aspiejs","version":"0.0.2","description":"A modified script that compiles to JavaScript.","main":"index.js","author":{"name":"AspieSoft"},"license":"MIT","repository":{"type":"git","url":"git://github.com/aspiesoft/aspiejs.git"},"keywords":["js","javascript","aspiejs","script","aspie","aspie-js"],"optionalDependencies":{"terser":"^5.6.1"},"gitHead":"f987bb02390148d996f0871f071c1b91fd972d2d","bugs":{"url":"https://github.com/aspiesoft/aspiejs/issues"},"homepage":"https://github.com/aspiesoft/aspiejs#readme","dependencies":{"terser":"^5.6.1"},"_id":"@aspiesoft/aspiejs@0.0.2","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-6O5f45UqbUL5JliX5K3BTegR27pHqRqb+X7x0csfvfaQbV+Va3IKW69Nc+3cDgtYyuICeItsFqUBtjXOh3nMng==","shasum":"c0406dbbf44e12b0d0637d27ed5314e6b0bcd7af","tarball":"https://registry.npmjs.org/@aspiesoft/aspiejs/-/aspiejs-0.0.2.tgz","fileCount":4,"unpackedSize":13413,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfGT0CRA9TVsSAnZWagAA7eYP/iFpDAtti+QNwAThT/WB\nSASUz/XF+8T8Gtqtcf/4m7uNLMSCN1EQU8IUkPfo1Ep73od1Fp82LxFLM1UZ\nN955zpq7kY8Kw/nuiqtXkVGC44PeDkudZcwDKzK7HzXEDMOZDQxZWVSNZa2f\n5j5t+xAE7B9jJGMQGWsi8dhH0AyIPIZFrQR9aPgU6wS7F2alWXuWrtgbfXDb\nN3zuXbtUYDFw6/LUv5dlNV352Bq5bB6aIwfkI4KCq6vI1658gDprfvUYuLka\nrtDjhGYdqsIF2Nwk18948LvT6JRcT+CZVMXTvq+cuAmRf41fy0yFS/XbRImP\nHLj7jJJCFHQMSo3FvtPwslPJ3ce8dnCfsGJVWGNX6iXjFcIYChe6UhpYODbM\nIgWx+OgeUKV5pF3j9JmQHNkflff/unU/gIrlGt+kid/tnqdk8mFJUySom5bc\nKYiZXqgllCsfY8si/Z4HzYxpG0JUsVd6x3cexf8AF5uZbYNXRFOabiRiNtYw\n6DjH36/rmTx17Tk5rRdSjfGfe3zIr7EcPUJg/5I/jS48z4IGL3WI6tzWQZJJ\np3NkpXtwDmHHhTlE3hVN3q1msxdtXk8hcEZ46mvsQzwBtIpcrZmJz0tn6K9F\nazzm8zLIEDiiOcN1NmT1JmREyziIHDAKOgv813v8GijTtcVRBOKom0i1IkM6\nn75s\r\n=3sQU\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEk7cFIwwWxRw235YwkZKEFtEzDA0mzou3L6tfLlcrTgIhAMQsRLnFNfZhHaB+mXyBmoqzBU4zd1u2DDkEb/RI00YP"}]},"_npmUser":{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"},"directories":{},"maintainers":[{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aspiejs_0.0.2_1618765044248_0.9959603441973865"},"_hasShrinkwrap":false},"0.1.0":{"name":"@aspiesoft/aspiejs","version":"0.1.0","description":"A modified script that compiles to JavaScript.","main":"index.js","author":{"name":"AspieSoft"},"license":"MIT","repository":{"type":"git","url":"git://github.com/aspiesoft/aspiejs.git"},"keywords":["js","javascript","aspiejs","script","aspie","aspie-js"],"optionalDependencies":{"terser":"^5.6.1"},"gitHead":"2ee5c1ea10d50a4b2207dcec3ab671e98c5239a3","bugs":{"url":"https://github.com/aspiesoft/aspiejs/issues"},"homepage":"https://github.com/aspiesoft/aspiejs#readme","dependencies":{"terser":"^5.6.1"},"_id":"@aspiesoft/aspiejs@0.1.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-vV93hkXlP+A5fLj7sXT8+CrtU+s+Mf4Lyu+I5vj8jHMBYAMHUK2FgZZ2PabAHfG5hvPLtW9/Cza0gGks6kZCzw==","shasum":"c637ee8d9ffaab5ffed460468201da2593188d80","tarball":"https://registry.npmjs.org/@aspiesoft/aspiejs/-/aspiejs-0.1.0.tgz","fileCount":4,"unpackedSize":15252,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgfHMACRA9TVsSAnZWagAAAJsP/0jyafyi+cJe/Y/7HKdA\nGceL1AfQdOoa8lpt2I5/hSh2OVfFfGlTwO0nYYALfW6z9Rof2Y2+3vYFVtMC\nQ/khHgFFmGpnVdExgjxrRExn1x9GWbheXg2Yedm3fjiH01qInfX/Epb/D9zD\nGIeoYssRTm/UQvsYZRZSuKOj9TmdbhR8nK1CiCpmymPHph19EEUhy6JLUjLD\nkXBu314XtLZ4pWl5pZ8jx3uAh1hz7LfY+eiN4WGj3A/DFBUue8lp9AXH27Js\nymjDK5LKHbW70O3YRta+/JZytKYzpT+vTEFbfW+NPlzrf5MbYJpKCcZCvXld\n6kVQjY0kmtwkQeUZI7Cr3IpIHUQpW41MmE53iw3YCRmV4CCkqo1ytmQOY0mo\n5LWCJwzNmKv3HLqtenqVU4gYiezgvqyY1XXUbIXt/TQF+edPaihWKfH6ayH3\nVlcSwzPv3KNOG+psXOZDuFzk8QIwen26FGz9QN04HsZ6ISu7PXmDCCpGaeHW\nbPMlGKG9FoaSxYK6YXqt8iNwdH+H6p+eBuSrVH+Qz5pK9nBxM8u1p6GBtPdO\nurkzVoe81Vd3WcVwtYZ7UkbeDzzYntDoHIPop+LbvfZX+ENCngPHu5Jzkq89\nWOeyqIrbHt87RffhSUjjoQVlyV035zILhF4jdq3vPozthxtL+wjPtHv3mE9t\nwXFW\r\n=iMCd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDPkcDMiEGy3gNHeK5YWnkh9kHA+NNgiNSa1UL4FiWAvAiAqDZaxzYe0UIO5Vg6LsoG0VQNV4gSUd9VyExir9LjNig=="}]},"_npmUser":{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"},"directories":{},"maintainers":[{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aspiejs_0.1.0_1618768639664_0.4994734617688461"},"_hasShrinkwrap":false},"0.2.0":{"name":"@aspiesoft/aspiejs","version":"0.2.0","description":"A modified script that compiles to JavaScript.","main":"index.js","author":{"name":"AspieSoft"},"license":"MIT","repository":{"type":"git","url":"git://github.com/aspiesoft/aspiejs.git"},"keywords":["js","javascript","aspiejs","script","aspie","aspie-js"],"optionalDependencies":{"terser":"^5.6.1"},"gitHead":"73bcbd03339e8b4f60ead156bd571fca76630186","bugs":{"url":"https://github.com/aspiesoft/aspiejs/issues"},"homepage":"https://github.com/aspiesoft/aspiejs#readme","dependencies":{"terser":"^5.6.1"},"_id":"@aspiesoft/aspiejs@0.2.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-fbEy2S2TnVPcsdR0Vfxvx6v4r8MzwYKzUoO1G9NLpoQeQZ8nPfLHFhhAmOP4lSlNfNayC7zrcBifo4Ioo8vQuQ==","shasum":"3614f991fbee22d360f3dba888ccec3e49d1ad0b","tarball":"https://registry.npmjs.org/@aspiesoft/aspiejs/-/aspiejs-0.2.0.tgz","fileCount":4,"unpackedSize":17213,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEDrgzjgMNf53YSCcpsTkwD8d1InZMyHdjDUkTBXE6xZAiAFKfj05ZBvCsvqAWOYMKM7JQSrk1Rdkck57e5jsgURXQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJix7muACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp02xAAmw6RCpNPdUakLU6oMuM3BOiDep7tva581Pz8JeuyCz/DmXHf\r\nYnSiUM/vwFTTrzzDmpunEYpW9k9j8y/cGFlnGCvh0SW/vNMJI+MGIlzXVH+6\r\nkMx9VIsNK3c+rUTAqjtrEFEJML7V+TIu8TtjhcivcN3jOHOk/PR2wN8pOzYu\r\nRe7yoS31NqrKIbUKGVM1mlsbtdgUxPzbVEytzVy+oxT73/Oq4Ji8DtxTGdt6\r\nDcrHMoTYc+3bNAHCm3aAUD4EH5BSZUfbD0JkSdoh7ofz8t8tX7WFotPsWEfB\r\nuNP3gH2pjT8lz2AhCb0C50CI0XKOhwrliMCagKR6rHqQdwueEEW4mug5fqOM\r\nhoaj1Z6FD67NVqmZskf/s1HVSH8Q0CVikT5fAyfLlCWFVHfiae5w7H/j7BKy\r\n40pz3wf23FT0KtOKqC7VMKYHQ+8WmRltwQkYUY5piqfb2OybD3UzwR4jJAQm\r\nhjeS+AQiAQPwksEeGPnmYkSK1TDcDA+jrwqIFcGA7/Es9bFiExy3hv1L3Ubu\r\nA6OqBjBIaqKYBV+UAbaKwvLdAGBqP24fnc70NiPXNNq5IQmbx2EhqxA1jNzC\r\n1kIeQ0VnFzcY8ZQ6o8e+4XIibUdtPJbQPyDTTDZo3FRj+mYirL77OPfq8LcK\r\nMV1uUuTRZPERVrkTmDGnzKrTZnBYLx0yVcw=\r\n=04cE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"},"directories":{},"maintainers":[{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/aspiejs_0.2.0_1657256366470_0.283197837401705"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-18T16:57:24.196Z","0.0.2":"2021-04-18T16:57:24.384Z","modified":"2022-07-08T04:59:26.765Z","0.1.0":"2021-04-18T17:57:19.787Z","0.2.0":"2022-07-08T04:59:26.697Z"},"maintainers":[{"name":"aspiesoft","email":"aspiesoftweb@gmail.com"}],"description":"A modified script that compiles to JavaScript.","homepage":"https://github.com/aspiesoft/aspiejs#readme","keywords":["js","javascript","aspiejs","script","aspie","aspie-js"],"repository":{"type":"git","url":"git://github.com/aspiesoft/aspiejs.git"},"author":{"name":"AspieSoft"},"bugs":{"url":"https://github.com/aspiesoft/aspiejs/issues"},"license":"MIT","readme":"# Aspie JS\r\n\r\n![npm version](https://img.shields.io/npm/v/@aspiesoft/aspiejs)\r\n![GitHub top language](https://img.shields.io/github/languages/top/aspiesoft/aspiejs)\r\n![GitHub license](https://img.shields.io/github/license/aspiesoft/aspiejs)\r\n\r\n![npm downloads](https://img.shields.io/npm/dw/@aspiesoft/aspiejss)\r\n![npm downloads](https://img.shields.io/npm/dm/@aspiesoft/aspiejs)\r\n![jsDelivr hits (GitHub)](https://img.shields.io/jsdelivr/gh/hm/aspiesoft/aspiejs)\r\n\r\n[![paypal](https://img.shields.io/badge/buy%20me%20a%20coffee-paypal-blue)](https://buymeacoffee.aspiesoft.com/)\r\n\r\n## A modified script that compiles to JavaScript\r\n\r\nThis project is still in beta, and is mostly the same as JavaScript.\r\nThis purpose of this module is to add some additional syntax to JavaScript.\r\nThis may be updated with new features added in the future.\r\n\r\n## Whats New\r\n\r\n- added import and export key words (similar to typescript syntax)\r\n\r\n## Installation\r\n\r\n```shell script\r\nnpm install @aspiesoft/aspiejs\r\n\r\n# install without terser (optional)\r\nnpm install --no-optional @aspiesoft/aspiejs\r\n```\r\n\r\n## Setup\r\n\r\n```js\r\nconst aspieJS = require('@aspiesoft/aspiejs');\r\n```\r\n\r\n## Usage\r\n\r\n```js\r\n\r\n// to compile a file from aspieJS to JavaScript\r\naspieJS.file(__dirname+'/path/to/file.js', __dirname+'/path/to/file.min.js');\r\n\r\n// to compile a string\r\nconst output = aspieJS.script(`\r\nvalidFunction(){\r\n  console.log('This function is valid in Aspie JS!')\r\n}\r\n\r\nlog(2^2) // => console.log(Math.pow(2^2))\r\n`);\r\n\r\n// to compile a string in async (and minify with terser if available)\r\naspieJS.scriptAsync('My AspieJS Script!').then(output => {\r\n  // do stuff...\r\n});\r\n\r\n// to compile a file in sync\r\naspieJS.fileSync(__dirname+'/path/to/file', __dirname+'/path/to/file.output');\r\n\r\n```\r\n\r\n## Custom Syntax\r\n\r\n```js\r\n\r\n// Math.pow\r\nlet n = 2 ^ 2\r\nn ^= 5\r\n\r\n// nth root (Math.sqrt)\r\nlet n = 4 \\ 2\r\nn \\= 5 // 5th root (n = Math.pow(n, 1/5))\r\n\r\n// absolute value (Math.abs)\r\n|2 - 10| // output: 8\r\n2 - 10 // output: -8\r\n\r\nlet circumference = pi // => let circumference = Math.PI\r\n\r\n// rounding (used Math.round with some multiplication and division)\r\n// JavaScripts .toFixed method does not handle negative values\r\nlog(circumference ~ 0) // output: 3\r\ncircumference ~= 2\r\nlog(circumference) // output 3.14\r\n\r\n// typeof is modified to output other common var types\r\ntypeof 'string' === 'string'\r\ntypeof /regex/ === 'regex'\r\ntypeof [1, 2, 3] === 'array'\r\ntypeof {key: 'value'} === 'object'\r\ntypeof null === 'null'\r\n\r\n// regex modifications\r\n/number \\c/ // => /number (?:-?[0-9]+(?:\\\\.[0-9]+|)|-?\\\\.[0-9]+)/\r\n\r\n// in addition, objects are auto closed to prevent errors\r\n{[1, 2], [3, 4} // compiles to => {[1, 2], [3, 4]}\r\n\r\n```\r\n","readmeFilename":"readme.md"}