{"_id":"@ansi-art/art","name":"@ansi-art/art","dist-tags":{"latest":"3.0.0-alpha4"},"versions":{"3.0.0-alpha4":{"name":"@ansi-art/art","version":"3.0.0-alpha4","homepage":"https://github.com/ansi-art/art","description":"A template for buildless module development","keywords":[],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"contributors":[],"type":"module","main":"dist/index.mjs","module":"src/index.mjs","commonjs":"dist/index.cjs","exports":{".":{"import":"./src/index.mjs","require":"./dist/index.cjs"},"./src/ansi-art.mjs":{"import":"./src/file-saver.mjs","require":"./dist/file-saver.cjs"},"./dist/ansi-art.cjs":{"import":"./src/file-saver.mjs","require":"./dist/file-saver.cjs"},"./index.js":{"import":"./src/index.mjs","require":"./dist/index.cjs"}},"repository":{"type":"git","url":"git+ssh://git@github.com/ansi-art/art.git"},"bugs":{"url":"https://github.com/ansi-art/art/issues"},"moka":{"firefox":{"engine":"@open-automaton/playwright-mining-engine","options":{"type":"firefox"}},"chrome":{"engine":"@open-automaton/playwright-mining-engine","options":{"type":"chromium"}},"safari":{"engine":"@open-automaton/playwright-mining-engine","options":{"type":"webkit"}},"stub":"src/stub.mjs","stubs":["express","module","path"],"shims":{"chai":"node_modules/chai/chai.js","browser-or-node":"node_modules/browser-or-node/src/index.js"}},"license":"MIT","devDependencies":{"@babel/cli":"^7.22.5","@babel/core":"^7.22.5","@babel/plugin-transform-modules-commonjs":"^7.22.5","@environment-safe/chai":"^0.1.0","@environment-safe/commonjs-builder":"^0.0.3","@environment-safe/jsdoc-builder":"^0.0.2","@open-automaton/moka":"^0.0.4","babel-plugin-search-and-replace":"^1.1.1","babel-plugin-transform-import-meta":"^2.2.0","chai":"^4.3.7","eslint":"^8.43.0","husky":"^8.0.3","mocha":"^10.2.0"},"scripts":{"lint":"eslint src/*.mjs test/*.mjs","test":"npm run import-test; npm run browser-test; npm run require-test","import-test":"mocha test/test.mjs","require-test":"mocha test/test.cjs","build-commonjs":"./node_modules/@environment-safe/commonjs-builder/bin/build.mjs","local-server":"open 'http://localhost:8085/' ; npx http-server -p 8085","headless-browser-test":"npm run headless-chrome-test; npm run headless-firefox-test; npm run headless-safari-test","headless-chrome-test":"moka --server . --browser chrome --relaxed --prefix ../ test/test.mjs","headless-firefox-test":"moka --server . --browser firefox --relaxed --prefix ../ test/test.mjs","headless-safari-test":"moka --server . --browser safari --relaxed --prefix ../ test/test.mjs","browser-test":"moka --server . --local-browser --relaxed --prefix ../ test/test.mjs","container-test":"docker build . -t environment-safe-package.json -f ./containers/test.dockerfile; docker logs --follow \"$(docker run -d environment-safe-package.json)\"","build-docs":"build-jsdoc docs","build-types":"build-jsdoc types","add-generated-files-to-commit":"git add docs/*.md; git add src/*.d.ts; git add dist/*.cjs","prepare":"husky install"},"dependencies":{"@ansi-art/async-context":"^3.0.0-alpha4","@ansi-art/color":"^3.0.0-alpha4","@ansi-art/tools":"^3.0.0-alpha4","@environment-safe/file":"^0.3.2","browser-or-node":"^2.1.1","kitchen-sync":"^2.0.0"},"_id":"@ansi-art/art@3.0.0-alpha4","gitHead":"d6fe8403d41247a186c042ae48f189914a0ea5dc","_nodeVersion":"18.19.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-XYIBhyvGA1RH4qbolyQRMcRKQrykMF5rZTjsy3elUzeS3w236obHvIPWf5RVK+nEVNMJbT6IwMrmuPO9kQxEGg==","shasum":"61e44f87a783d03ded15b36bc10c3ba374c6b490","tarball":"https://registry.npmjs.org/@ansi-art/art/-/art-3.0.0-alpha4.tgz","fileCount":17,"unpackedSize":28976,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDACSO4Yhx8QpiLlwI3e9NBu3jHMhWLpuVooIrJVVhh8wIhAIg5IS8++RIbLaAkW7kwrMZ/nC8W2R2rj3npnpz3+JDS"}]},"_npmUser":{"name":"khrome","email":"abbey@khrome.net"},"directories":{},"maintainers":[{"name":"khrome","email":"abbey@khrome.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/art_3.0.0-alpha4_1728102630432_0.8467812809679409"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-05T04:30:30.331Z","3.0.0-alpha4":"2024-10-05T04:30:30.625Z","modified":"2024-10-05T04:30:30.934Z"},"maintainers":[{"name":"khrome","email":"abbey@khrome.net"}],"description":"A template for buildless module development","homepage":"https://github.com/ansi-art/art","keywords":[],"repository":{"type":"git","url":"git+ssh://git@github.com/ansi-art/art.git"},"contributors":[],"author":{"name":"Abbey Hawk Sparrow","email":"@khrome","url":"http://patternweaver.com"},"bugs":{"url":"https://github.com/ansi-art/art/issues"},"license":"MIT","readme":"@ansi-art/art\n=============\n\nThe rebuild of ascii-art as a from-source executable (browser + server) in ESM which builds in CommonJS and UMD, for backward compatibility. In addition it includes WebComponent definitions for `ansi-image`, `ansi-text`, `ansi-table`, and `ansi-layout`\n\nIt remains build compatible, for those who need that.\n\nRequirements\n------------\n\nTBD\n\nUsage\n-----\n\nTBD\n\nRoadmap\n-------\n\n- [X] - rebuilt fluent API\n- [X] - font support\n- [ ] - style support\n- [ ] - image support\n- [ ] - table support\n- [ ] - composite support\n\n</span>\n\nTesting\n-------\n\nRun the es module tests to test the root modules\n```bash\nnpm run import-test\n```\nto run the same test inside the browser:\n\n```bash\nnpm run browser-test\n```\nto run the same test headless in chrome:\n```bash\nnpm run headless-browser-test\n```\n\nto run the same test inside docker:\n```bash\nnpm run container-test\n```\n\nRun the commonjs tests against the `/dist` commonjs source (generated with the `build-commonjs` target).\n```bash\nnpm run require-test\n```\n\nDevelopment\n-----------\nAll work is done in the .mjs files and will be transpiled on commit to commonjs and tested.\n\nIf the above tests pass, then attempt a commit which will generate .d.ts files alongside the `src` files and commonjs classes in `dist`\n\n","readmeFilename":"README.md"}