
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
function-file-tools
Advanced tools
Small (hopefully) library to interact with files in Functional Programmming Style
Small (hopefully) library to interact with files in Functional Programming Style.
All monad goodies of functional programing : ramda
, data.task
now combined with streams and node file programs.
npm install function-file-tools --save
const { readFileStream } = require('function-file-tools')
const ost = require('object-stream-tools')
const app = readFileStream(__dirname + '/README.md')
.map(ost.map(e => e.split(/\n|\t/gi))
.pipe(process.stdout))
app.fork(console.error, console.log)
const { readFileStream } = require('function-file-tools')
const ost = require('object-stream-tools')
const { split } = require('ramda')
const app = readFileStream(__dirname + '/README.md')
.map(ost.map(split(/\n|\t/gi))
.pipe(process.stdout))
app.fork(console.error, console.log)
import { readFile, readFileStream, writeFile } from 'function-file-tools'
const app = readFile(__dirname + '/README.txt')
.map(e => e.split(/\n|\t/gi))
.chain(contents => writeFile(__dirname + '/.tmp.txt', contents))
// when you want to have side effect
app.fork(console.error, console.log)
ava test
FAQs
Small (hopefully) library to interact with files in Functional Programmming Style
The npm package function-file-tools receives a total of 0 weekly downloads. As such, function-file-tools popularity was classified as not popular.
We found that function-file-tools demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.