{"id":16600047,"url":"https://github.com/syzer/function-tools","last_synced_at":"2025-11-02T17:02:51.760Z","repository":{"id":57242957,"uuid":"79200979","full_name":"syzer/function-tools","owner":"syzer","description":"Small (hopefully) lib for operating with files in functional programming style","archived":false,"fork":false,"pushed_at":"2017-06-15T13:10:25.000Z","size":9,"stargazers_count":2,"open_issues_count":8,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T08:11:32.595Z","etag":null,"topics":["functional-programming","library","stream"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syzer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-01-17T07:30:10.000Z","updated_at":"2020-12-18T14:55:17.000Z","dependencies_parsed_at":"2022-09-15T01:21:51.703Z","dependency_job_id":null,"html_url":"https://github.com/syzer/function-tools","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syzer%2Ffunction-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syzer%2Ffunction-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syzer%2Ffunction-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syzer%2Ffunction-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syzer","download_url":"https://codeload.github.com/syzer/function-tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247263946,"owners_count":20910496,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","library","stream"],"created_at":"2024-10-12T00:13:27.831Z","updated_at":"2025-11-02T17:02:46.729Z","avatar_url":"https://github.com/syzer.png","language":"JavaScript","readme":"# WAT [![Build Status](https://travis-ci.org/syzer/function-tools.svg?branch=master)](https://travis-ci.org/syzer/function-tools)\n\nSmall (hopefully) library to interact with files in Functional Programming Style.\n\n## AKA\nAll monad goodies of functional programing : `ramda`, `data.task` now combined with streams and node file programs.\n\n\n# How\n```bash\nnpm install function-file-tools --save\n```\n\n\n# Usage\n\n## Using es2015 style with object-stream-tools\n\n```js\nconst { readFileStream } = require('function-file-tools')\nconst ost = require('object-stream-tools')\n\nconst app = readFileStream(__dirname + '/README.md')\n    .map(ost.map(e =\u003e e.split(/\\n|\\t/gi))\n    .pipe(process.stdout))\n\napp.fork(console.error, console.log)\n```\n\n## Using ramda curried functions\n\n```js\nconst { readFileStream } = require('function-file-tools')\nconst ost = require('object-stream-tools')\nconst { split } = require('ramda')\n\nconst app = readFileStream(__dirname + '/README.md')\n    .map(ost.map(split(/\\n|\\t/gi))\n    .pipe(process.stdout))\n\napp.fork(console.error, console.log)\n```\n\n\n## Using node v.7 with --harmony\n\n```js\nimport { readFile, readFileStream, writeFile } from 'function-file-tools'\n\nconst app = readFile(__dirname + '/README.txt')\n        .map(e =\u003e e.split(/\\n|\\t/gi))\n        .chain(contents =\u003e writeFile(__dirname + '/.tmp.txt', contents))\n\n// when you want to have side effect\napp.fork(console.error, console.log)\n```\n\n\n# Test\n\n```\nava test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyzer%2Ffunction-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyzer%2Ffunction-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyzer%2Ffunction-tools/lists"}