Skip to content

Instantly share code, notes, and snippets.

@imkrish
Created September 2, 2017 22:43
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/f1d3a88c259c9ffb1b9c67a2c55fd7e9 to your computer and use it in GitHub Desktop.
Save imkrish/f1d3a88c259c9ffb1b9c67a2c55fd7e9 to your computer and use it in GitHub Desktop.
02-pipe.js
const fs = require('fs')
const R = require('ramda')
const parseJSONFromFile = R.pipe(fs.readFileSync, JSON.parse)
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