Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dustinspecker/ng-mod-has-dep
Check if Angular module has a dependency
https://github.com/dustinspecker/ng-mod-has-dep
Last synced: 2 days ago
JSON representation
Check if Angular module has a dependency
- Host: GitHub
- URL: https://github.com/dustinspecker/ng-mod-has-dep
- Owner: dustinspecker
- License: mit
- Created: 2015-01-30T17:58:58.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-28T20:11:02.000Z (over 7 years ago)
- Last Synced: 2024-10-11T01:31:00.133Z (28 days ago)
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ng-mod-has-dep [![NPM version](https://badge.fury.io/js/ng-mod-has-dep.svg)](http://badge.fury.io/js/ng-mod-has-dep) [![Build Status](https://travis-ci.org/dustinspecker/ng-mod-has-dep.svg)](https://travis-ci.org/dustinspecker/ng-mod-has-dep) [![Coverage Status](https://img.shields.io/coveralls/dustinspecker/ng-mod-has-dep.svg)](https://coveralls.io/r/dustinspecker/ng-mod-has-dep?branch=master)
[![Code Climate](https://codeclimate.com/github/dustinspecker/ng-mod-has-dep/badges/gpa.svg)](https://codeclimate.com/github/dustinspecker/ng-mod-has-dep) [![Dependencies](https://david-dm.org/dustinspecker/ng-mod-has-dep.svg)](https://david-dm.org/dustinspecker/ng-mod-has-dep/#info=dependencies&view=table) [![DevDependencies](https://david-dm.org/dustinspecker/ng-mod-has-dep/dev-status.svg)](https://david-dm.org/dustinspecker/ng-mod-has-dep/#info=devDependencies&view=table)> Check if Angular module has a dependency
## Usage
```javascript
var ngModHasDep = require('ng-mod-has-dep')
, fs = require('fs');/* module.js
angular
.module('module', [
'dep'
]);
*/
var fileContents = fs.readFileSync('module.js');ngModHasDep(fileContents, 'dep');
//=> truengModHasDep(fileContents, 'dep2');
//=> false
```## License
MIT