Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benpickles/js-model
Work with models in your JavaScript
https://github.com/benpickles/js-model
Last synced: 4 days ago
JSON representation
Work with models in your JavaScript
- Host: GitHub
- URL: https://github.com/benpickles/js-model
- Owner: benpickles
- License: mit
- Created: 2010-01-28T11:59:55.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2013-08-23T15:13:20.000Z (about 11 years ago)
- Last Synced: 2024-11-09T18:03:21.942Z (11 days ago)
- Language: JavaScript
- Homepage: http://benpickles.github.io/js-model/
- Size: 1.22 MB
- Stars: 403
- Watchers: 12
- Forks: 42
- Open Issues: 15
-
Metadata Files:
- Readme: README.markdown
- Changelog: CHANGELOG.markdown
- License: LICENSE
Awesome Lists containing this project
README
# js-model
js-model is a library that allows you to work with models in your JavaScript.
## In brief
Declare a model class:
var Todo = Model("todo")
Now create and manipulate model instances:
var todo = new Todo({ text: "do it" })
todo.attr("when", "now")
todo.save()## Documentation / download / more
For notes on [getting started](http://benpickles.github.com/js-model/#getting-started), [persisting via REST or localStorage](http://benpickles.github.com/js-model/#persistence), [using with Sammy](http://benpickles.github.com/js-model/#js-model-hearts-sammy), [API documentation](http://benpickles.github.com/js-model/#api) and download links visit the [js-model docs site](http://benpickles.github.com/js-model/).
## Suggestions / questions / issues / comments
Feel free to use [Github issues](http://github.com/benpickles/js-model/issues) for any of the above.
## Copyright
Copyright 2010-2012 [Ben Pickles](http://benpickles.com/). See [LICENSE](http://github.com/benpickles/js-model/blob/master/LICENSE) for details.