No description
.vscode | ||
public | ||
src | ||
.gitignore | ||
astro.config.mjs | ||
index.ts | ||
package-lock.json | ||
package.json | ||
README.md | ||
tsconfig.json |
Astro Resume
Utilities for serializing data from server for use in the client.
Resumable
Astro component takesid
anddata
resume(id: string): Object
function for use int he client takes anid
string and returns thedata
as Object
Intallation
npm i @ayco/astro-resume
Usage
---
import Resumable from "@ayco/astro-resume";
const data = {
hello: 'world'
}
---
<Resumable id="astro-obj" data={data} />
<script>
import {resume} from '@ayco/astro-resume';
console.log(
resume('astro-obj')
)
</script>