https://github.com/danielrohers/task-scripted
Scripted' application to run JS files once.
https://github.com/danielrohers/task-scripted
Last synced: 12 days ago
JSON representation
Scripted' application to run JS files once.
- Host: GitHub
- URL: https://github.com/danielrohers/task-scripted
- Owner: danielrohers
- License: other
- Created: 2015-06-03T02:49:11.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2025-04-08T23:35:19.000Z (about 1 year ago)
- Last Synced: 2025-08-13T04:28:47.013Z (11 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/task-scripted
- Size: 7.81 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Scripted
[Scripted'](https://www.npmjs.com/package/task-scripted) application to run JS files once.
Inspired Rails migrations, Scripted was created to run JS scripts only once, based on scripts already saved in the collection scripts in MongoDB.
[](https://badge.fury.io/js/task-scripted)
[](https://www.npmjs.com/package/task-scripted)
Example: [1433298714535-for.js][for]
```sh
$ scripted -c for
$ scripts/1433298714535-for.js created
```
## Installation
```sh
$ npm install -g task-scripted
```
## Configuration
You must configure MongoDB, it can be done using mongoose.json or environment variable MONGO_SCRIPTED.
##### mongoose.json
```sh
$ scripted -m
```
```json
{
"url" : "mongodb://localhost:27017/scripted"
}
```
##### Environment variable
In your .bash_profile or similar
```shell
export MONGO_SCRIPTED=mongodb://localhost:27017/scripted
```
## Command Line Options
Usage: scripted [options]
Options:
-h, --help output usage information
-V, --version output the version number
-c, --create Create script
-e, --execute Execute scripts
-m, --mongoose Create mongoose.json (optional)
-s, --scripted Create scripted-template.js (optional)
## Technologies
- [Node.js](https://nodejs.org/)
- [MongoDB](https://www.mongodb.org/)
## License
[MIT](LICENSE)
[for]:https://github.com/danielrohers/task-scripted/blob/master/examples/scripts/1433298714535-for.js