Skip to content

Instantly share code, notes, and snippets.

@imkrish
Last active September 2, 2017 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save imkrish/6a21659a0b442ebedd684b75dbc3b0d3 to your computer and use it in GitHub Desktop.
Save imkrish/6a21659a0b442ebedd684b75dbc3b0d3 to your computer and use it in GitHub Desktop.
01-compose.js
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