{"_id":"@a-morphous/recital","name":"@a-morphous/recital","dist-tags":{"latest":"1.2.2"},"versions":{"1.2.2":{"name":"@a-morphous/recital","version":"1.2.2","description":"Script lexer for Recital, which converts the Recital `.stage` document format into JSON tokens, which can then be handed off to various other exporters or simply read as data.","keywords":[],"main":"dist/stage-parser.js","module":"dist/stage-parser.module.js","types":"dist/types/stage-parser.d.ts","author":{"name":"Amorphous","email":"dl.amorphous@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/a-morphous/recital.git"},"license":"MPL 2.0","engines":{"node":">=6.0.0"},"prettier":{"semi":false,"singleQuote":true,"useTabs":true},"devDependencies":{"@a-morphous/test":"^1.0.0","@types/node":"^17.0.21","cross-env":"^7.0.3","esbuild":"^0.14.25","glob":"^7.1.6","prettier":"^2.5.1","rimraf":"^3.0.2","source-map-explorer":"^2.5.2","ts-node":"^9.1.1","tslib":"^2.3.1","typedoc":"^0.22.13","typescript":"^4.2.2"},"dependencies":{"@iarna/toml":"^2.2.5","eol":"^0.9.1","minimist":"^1.2.5","moo":"^0.5.1"},"scripts":{"analyze":"source-map-explorer dist/stage-parser.module.js","prebuild":"rimraf dist","build":"tsc && node build && typedoc --out docs --theme default --entryPointStrategy expand src","start":"node build -w","test":"test './test/*.spec.js'","dryRun":"pnpm publish --dry-run","pub":"pnpm publish --access public"},"bugs":{"url":"https://github.com/a-morphous/recital/issues"},"homepage":"https://github.com/a-morphous/recital#readme","_id":"@a-morphous/recital@1.2.2","_integrity":"sha512-uBpAjESZDBe3YwlCy5QP3o98aJe2JLuNwuvtRaH45m69f7Ggo+L0drGemNFi3UrVoDXwm0Tcr/3EdG9W6QDoUQ==","_resolved":"/private/var/folders/pd/2r2pf8ln2cv61g2b_k9fr5nc0000gn/T/2105f31c4c496b04d275e313b0d6552d/a-morphous-recital-1.2.2.tgz","_from":"file:a-morphous-recital-1.2.2.tgz","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-uBpAjESZDBe3YwlCy5QP3o98aJe2JLuNwuvtRaH45m69f7Ggo+L0drGemNFi3UrVoDXwm0Tcr/3EdG9W6QDoUQ==","shasum":"541ad0a60e19a22023bda68a91b75ff033ecba24","tarball":"https://registry.npmjs.org/@a-morphous/recital/-/recital-1.2.2.tgz","fileCount":69,"unpackedSize":642181,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFRuuZ+/I95uSDGGT6uEOY59shx/s5dn3+rlE8SiEA+HAiEAkFPdCDA/ROFRFo8QgGdSB+u2JsIFxeiNzmYdeK6kjAQ="}]},"_npmUser":{"name":"amorphous","email":"84998015+a-morphous@users.noreply.github.com"},"directories":{},"maintainers":[{"name":"amorphous","email":"84998015+a-morphous@users.noreply.github.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/recital_1.2.2_1717831186690_0.6474168356920091"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-08T07:19:46.584Z","1.2.2":"2024-06-08T07:19:46.856Z","modified":"2024-06-08T07:19:47.191Z"},"maintainers":[{"name":"amorphous","email":"84998015+a-morphous@users.noreply.github.com"}],"description":"Script lexer for Recital, which converts the Recital `.stage` document format into JSON tokens, which can then be handed off to various other exporters or simply read as data.","homepage":"https://github.com/a-morphous/recital#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/a-morphous/recital.git"},"author":{"name":"Amorphous","email":"dl.amorphous@gmail.com"},"bugs":{"url":"https://github.com/a-morphous/recital/issues"},"license":"MPL 2.0","readme":"# Core\n\nScript lexer for Recital, which converts the Recital `.stage` document format into JSON tokens, which can then be handed off to various other exporters or simply read as data.\n\nNote that this core should only run on the scene / fragment level! Anything that interacts with the text of an individual scene or fragment should be handled in an extension.\n\n## Usage\n\n```\nimport parser from '@a-morphous/recital`\n\nconst sceneList = parser(rawText)\n\n...\n```\n\nIndividual components and helpers can also be used:\n\n```\nimport { createCommandObject } from '@a-morphous/recital/dist/lib/tools/command-shorthand'\n\ncreateCommandObject(args)\n```\n\n## Testing\n\nUnfortunately, jest tests are broken, so instead there is a sandbox in the `example` directory that can be run instead. To do so, run your favorite HTTP server (I like npm's `http-server`) in this project directory:\n\n```\n$ http-server .\n```\n\nand then browse to `http://localhost:8080/example/`.\n\n> NOTE: the server being pointed to the root directory is only necessary because the example has to point to the `dist` folder.\n","readmeFilename":"README.md"}