This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dbaeeca
Showing
6 changed files
with
99 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
node_modules | ||
npm-debug.log | ||
*.swp | ||
lib | ||
docs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.gitignore | ||
docs | ||
src | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{spawn, exec} = require 'child_process' | ||
|
||
task 'lib', 'Generate the library from the src', -> | ||
coffee = spawn 'coffee', ['-c', '-o', 'lib', 'src'] | ||
coffee.stdout.on 'data', (data) -> console.log data.toString().trim() | ||
|
||
task 'docs', 'Generate the documentation from the src', -> | ||
exec([ | ||
'rm -rf docs' | ||
'for i in $(find src -name *.coffee)' | ||
'do mkdir -p $(dirname $i | sed -s "s/src/docs/")' | ||
' docco $i' | ||
' dirs=$i; ext=""' | ||
' while expr $(dirname $dirs) != "src"' | ||
' do dirs=$(dirname $dirs)' | ||
' ext="..\\/$ext"' | ||
' done' | ||
' ext=$ext"docco.css"' | ||
' file="docs/"$(basename $i | sed -s "s/coffee/html/")' | ||
' sed -i "s/docco.css/$ext/" $file' | ||
' mv $file $(echo $i | sed -s "s/coffee/html/;s/src/docs/")' | ||
'done' | ||
].join('; '), (err) -> | ||
throw err if err | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# nosqlite | ||
|
||
nosqlite is a readable nosql type filesystem json store | ||
|
||
## Installation | ||
``` | ||
npm install nosqlite | ||
``` | ||
|
||
## Usage | ||
|
||
```js | ||
``` | ||
|
||
If you like this project, please watch this and follow me. | ||
|
||
## Testing | ||
``` | ||
npm test | ||
``` | ||
|
||
## Contributors | ||
Here is a list of [Contributors](http://github.com/pksunkara/nosqlite/contributors) | ||
|
||
__I accept pull requests and guarantee a reply back within a day__ | ||
|
||
## License | ||
MIT/X11 | ||
|
||
## Bug Reports | ||
Report [here](http://github.com/pksunkara/nosqlite/issues). __Guaranteed reply within a day__. | ||
|
||
## Contact | ||
Pavan Kumar Sunkara (pavan.sss1991@gmail.com) | ||
|
||
Follow me on [github](https://github.com/users/follow?target=pksunkara), [twitter](http://twitter.com/pksunkara) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "nosqlite", | ||
"description": "a readable nosql type filesystem json store", | ||
"version": "0.1.0", | ||
"author": "Pavan Kumar Sunkara <pavan.sss1991@gmail.com> (http://pkumar.github.com)", | ||
"contributors": [ | ||
{ "name": "Pavan Kumar Sunkara", "email": "pavan.sss1991@gmail.com" } | ||
], | ||
"dependencies": { | ||
}, | ||
"devDependencies": { | ||
"docco": "*", | ||
"coffee-script": "~1.1.3", | ||
"vows": "~0.6.0" | ||
}, | ||
"keywords": ["nosql", "json", "file", "couch", "filesystem", "store"], | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/pksunkara/nosqlite.git" | ||
}, | ||
"main": "./lib/nosqlite", | ||
"scripts": { | ||
"test": "vows --spec $(find test -name '*-test.coffee')", | ||
"prepublish": "cake docs && cake lib" | ||
}, | ||
"engines": { "node": ">= 0.4" } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
path = require 'path' | ||
fs = require 'fs' |