Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 079ba8f

Browse files
author
Clément PREVOT
committed
Add a script to check bower.json
1 parent 594e1b7 commit 079ba8f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

check_bower.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var bowerJson = require('bower-json');
2+
3+
// Can also be used by simply calling bowerJson()
4+
bowerJson.read('./bower.json', function (err, json) {
5+
if (err) {
6+
console.error('There was an error reading the file');
7+
console.error(err.message);
8+
return;
9+
}
10+
11+
console.log('JSON: ', json);
12+
});

0 commit comments

Comments
 (0)