-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#3 - Adds eslint and standardjs for coding standards
- Loading branch information
Showing
10 changed files
with
3,722 additions
and
3,722 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
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 |
---|---|---|
@@ -1,23 +1,22 @@ | ||
'use strict'; | ||
'use strict' | ||
|
||
// Dependencies | ||
const | ||
Behance = require('../index.js'), | ||
fs = require('fs'); | ||
const Behance = require('../index.js') | ||
const fs = require('fs') | ||
|
||
// Create an Instance of Behance with API Key | ||
const | ||
key = require('../api.json').key, | ||
Be = new Behance(key); | ||
const key = require('../api.json').key | ||
const Be = new Behance(key) | ||
|
||
// Get Projects Data | ||
Be.userProjects('edmendoza3', function(err, res, data) { | ||
|
||
// Check for errors | ||
if (err) { | ||
throw err; | ||
} | ||
Be.userProjects('edmendoza3', function (err, res, data) { | ||
// Check for errors | ||
if (err) { | ||
throw err | ||
} | ||
|
||
// Write a JSON File with API Data | ||
fs.writeFile('./projectsData.json', JSON.stringify(data, null, 4)); | ||
}); | ||
// Write a JSON File with API Data | ||
fs.writeFile('./projectsData.json', JSON.stringify(data, null, 2), (err) => { | ||
if (err) throw err | ||
}) | ||
}) |
Oops, something went wrong.