https://github.com/chientrm/svelte-preprocess-alien
Replace alien dollar sign with your favorite alien string.
https://github.com/chientrm/svelte-preprocess-alien
Last synced: about 1 year ago
JSON representation
Replace alien dollar sign with your favorite alien string.
- Host: GitHub
- URL: https://github.com/chientrm/svelte-preprocess-alien
- Owner: chientrm
- License: mit
- Created: 2023-08-15T19:48:52.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-15T19:58:13.000Z (almost 3 years ago)
- Last Synced: 2025-03-01T20:46:31.139Z (over 1 year ago)
- Language: TypeScript
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# svelte-preprocess-alien
Replace alien dollar sign with your favorite alien string.
[](https://www.npmjs.com/package/svelte-preprocess-alien)
[](https://www.npmjs.com/package/svelte-preprocess-alien)
## Install
```
npm i -D svelte-preprocess-alien
```
## Config
```ts
// svelte.config.js
import { alien } from 'svelte-preprocess-alien';
...
preprocess: [alien('πΈπΈπΈ'), vitePreprocess({})],
...
```
Now you can write Svelte reactivity like this
```html
πΈπΈπΈ: mine = $page.url.searchParams.get('mine');
```