task-scripted
v1.0.7
Published
Scripted' application to run JS files once.
Downloads
18
Maintainers
Readme
Scripted
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.
Example: 1433298714535-for.js
$ scripted -c for
$ scripts/1433298714535-for.js created
Installation
$ npm install -g task-scripted
Configuration
You must configure MongoDB, it can be done using mongoose.json or environment variable MONGO_SCRIPTED.
mongoose.json
$ scripted -m
{
"url" : "mongodb://localhost:27017/scripted"
}
Environment variable
In your .bash_profile or similar
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)