Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/s-a/deep-js
Documenting JavaScript
https://github.com/s-a/deep-js
Last synced: about 5 hours ago
JSON representation
Documenting JavaScript
- Host: GitHub
- URL: https://github.com/s-a/deep-js
- Owner: s-a
- Created: 2015-04-12T18:18:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-29T20:26:22.000Z (over 9 years ago)
- Last Synced: 2024-11-08T19:06:06.980Z (8 days ago)
- Language: JavaScript
- Homepage:
- Size: 293 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.MD
Awesome Lists containing this project
README
# deep-js
[![Build Status](http://img.shields.io/travis/s-a/deep-js.svg?style=flat-square)](https://travis-ci.org/s-a/deep-js)
[![Codacy Badge](https://www.codacy.com/project/badge/1ffcf7a0ed0341d8b21bb6c17655c013)](https://www.codacy.com/app/stephanahlf/deep-js)
[![Coverage Status](https://coveralls.io/repos/s-a/deep-js/badge.svg?branch=master)](https://coveralls.io/r/s-a/deep-js?branch=master)
[![NPM Version](http://img.shields.io/npm/v/deep-js.svg?style=flat-square)](https://www.npmjs.org/package/deep-js)
[![Dependencies](https://img.shields.io/david/s-a/deep-js.svg)](#)
[![Development Dependencies](https://img.shields.io/david/dev/s-a/deep-js.svg)](#)## About
A commandline app documenting Javascript code. Inspired by JS Doc I thought it would be wonderful if a tool can understand my JavaScript code. It should be possible to generate a useful API documentation without learning any blocktags and without heavy syntax specifications. It should be light weight and simple to use for small JavaScript projects.
// work is heavy @ progress ( feel free to contribute! )## Todo
- pipe multiple JavaScript files for document output
- identify and order namespaces
- resolve ```this``` within functions## Installation
- ```npm install -g deep-js```
## Options
- h, --help output usage information
- V, --version output the version number
- f, --file JavaScript file to parse
- d, --describe comma seperated list of JavaScript names that should be described
- o, --output Documentation output file## Examples
- ```deep --file=use-case-main.js --describe=* --output=lib-doc/use-case-main.js.MD``` will create [/lib-doc/use-case-main.js.MD](/lib-doc/use-case-main.js.MD)## Develpment setup
- ```npm install -g mocha```
- ```npm install -g coveralls```## Contributing
- Fork it!
- Create your feature branch: `git checkout -b my-new-feature`
- Add a test for each new code
- Check the coverage ```npm run cover-html``` will produce a file called ```coverage.html```
- Add add your new code
- Run the tests: `npm test`
- Commit your changes: `git commit -am 'Add some feature'`
- Push to the branch: `git push origin my-new-feature`
- Submit a pull request :D## License
### The MIT License (MIT)
Copyright (C) 2015 Stephan AhlfPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### GPLv3
Copyright (C) 2015 Stephan Ahlf
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program. If not, see .