July 2017
Intermediate to advanced
656 pages
16h 1m
English
To get started, let's create a new folder called fetching-meta-data, containing a file called meta.js:
$ mkdir fetching-meta-data $ cd fetching-meta-data $ touch meta.js
Now let's use npm to create package.json file:
$ npm init -y
We're going to display tabulated and styled metadata in the terminal; instead of manually writing ANSI codes and tabulating code, we'll simply be using the third-party tableaux module.
We can install it like so:
$ npm install --save tableaux
Finally, we'll create a folder structure that we can check our program against:
$ mkdir -p my-folder/my-subdir/my-subsubdir $ cd my-folder $ touch my-file my-private-file $ chmod 000 my-private-file $ echo "my edit" > my-file $ ln -s my-file my-symlink $ touch ...