Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AULA [Node.js] - module.exports = exports #759

Open
suissa opened this issue Mar 27, 2016 · 1 comment
Open

AULA [Node.js] - module.exports = exports #759

suissa opened this issue Mar 27, 2016 · 1 comment
Assignees

Comments

@suissa
Copy link
Member

suissa commented Mar 27, 2016

Ensinar diversos exemplos de como criar módulos e seus padrões.

@suissa suissa self-assigned this Mar 27, 2016
@PauloSilva92
Copy link
Contributor

'use strict';

const fs = require('fs');

const callback = (result)=>{
module.exports = result;
}

fs.readFile('./schema01.js', 'utf-8', (err, data)=>{
if (err) return console.log(err);
callback(data);
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants