Install the library
npm install @lowgame/ascii-arter
// Önce JSON'u burada test et:
// https://lowgame.github.io/Ascii-Arter/ (JSON Test)
// sonra kendi sitende kullan.
Bundler usage
import AsciiBackground, { parseProjectData } from '@lowgame/ascii-arter';
fetch('/my-project.json')
.then((res) => res.text())
.then((json) => {
AsciiBackground.mount('#my-element', parseProjectData(json));
});
CDN usage
<script type="module">
import AsciiBackground, { parseProjectData } from 'https://unpkg.com/@lowgame/ascii-arter/dist/ascii-arter.esm.js';
fetch('/my-project.json')
.then((res) => res.text())
.then((json) => {
AsciiBackground.mount('#my-element', parseProjectData(json));
});
</script>
Current project JSON
Test with existing JSONs
Paste JSON here (test/import)