var fs = require('fs');
fs.readFile('/etc/passwd', function(err, fileContent) {
if (err) {
throw err;
}
Atomμ΄ μ€νλν, ~/.atom
λλ ν 리μ μλ init.coffee
νμΌμ΄ μ€νλλ©°, λμκ² μνλ λλ‘ λ§λ CoffeeScript μ½λλ₯Ό μ€νν κΈ°νλ₯Ό μ€λ€.
λλ Atom > Open Your Init Script
λ©λ΄μμ init.coffee
νμΌμ μ΄μμλ€. μ΄ νμΌμ λν init.js
μ΄λ¦ μ§μ΄μ§ μ μμΌλ©° JavaScript μ½λλ₯Ό ν¬ν¨ν μ μλ€.
μλ₯Ό λ€μ΄, λ§μ½ λκ° Audio Beep νμ±ν νκ³ μΆλ€λ©΄, λλ λ°μ μ½λλ₯Ό λμ init.coffe
νμΌμ μΆκ°νλ©΄ Atomμ μ€νν λλ§λ€ Beepκ° μΈλ¦΄κ²μ΄λ€.
code:
atom.beep()
src/HelloWorld.js:
function helloWorld() {
return 'Hello World!';
var jsdom = require('jsdom');
var jquery = require('jquery');
jsdom.env({
This file contains hidden or 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
Hello World |