Last active
September 2, 2017 22:42
-
-
Save imkrish/6a21659a0b442ebedd684b75dbc3b0d3 to your computer and use it in GitHub Desktop.
01-compose.js
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
const fs = require('fs') | |
const R = require('ramda') | |
const parseJSONFromFile = R.compose(JSON.parse, fs.readFileSync) | |
const products = parseJSONFromFile('../products.json') | |
console.log(products) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment