Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rksm/paredit.js
Generic reader and editor for s-expressions.
https://github.com/rksm/paredit.js
Last synced: 2 months ago
JSON representation
Generic reader and editor for s-expressions.
- Host: GitHub
- URL: https://github.com/rksm/paredit.js
- Owner: rksm
- License: mit
- Created: 2014-12-29T23:57:46.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-09-04T23:31:19.000Z (over 2 years ago)
- Last Synced: 2024-10-13T10:25:58.306Z (3 months ago)
- Language: JavaScript
- Size: 1.68 MB
- Stars: 107
- Watchers: 15
- Forks: 21
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
![](http://robert.kra.hn/images/paredit-logo.jpg)
Editing [the language of gods](https://www.youtube.com/watch?v=5-OjTPj7K54)
civilized, even on the web.For more details see the project page [here](http://robert.kra.hn/projects/paredit-js).
## Usage
`npm install` then see examples.
## Dev
### build
Update `paredit-bundle.min.js` and `paredit-bundle.js`:
```shell
node build.js
```### Testing
Manually: You can open [examples/paredit.html](examples/paredit.html) in a browser (directly the file, no need to use a http server). Build before you do that.
Unit tests: `npm run test`
### With Lively
Load via lively.modules:
```js
await load();async function load() {
var lm = lively.modules,
files = ["./index.js",
'./lib/util.js',
"./lib/reader.js",
"./lib/navigator.js",
"./lib/editor.js",
// "./tests/reader-test.js",
// "./tests/navigator-test.js",
// "./tests/editor-test.js"
],
p = lm.getPackage("paredit.js");
for (let f of files) await lm.module(lively.lang.string.joinPath(p.url, f)).reload();
}
```