{"id":15478570,"url":"https://github.com/edin-m/node-deliedit","last_synced_at":"2025-03-28T14:14:45.440Z","repository":{"id":27870981,"uuid":"31361947","full_name":"edin-m/node-deliedit","owner":"edin-m","description":"Node js delimited text editing library.","archived":false,"fork":false,"pushed_at":"2017-08-12T00:49:04.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-19T03:24:43.721Z","etag":null,"topics":["delimiter","javascript","passthrough"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"asaskevich/govalidator","license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/edin-m.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-26T10:25:51.000Z","updated_at":"2017-08-11T22:52:25.000Z","dependencies_parsed_at":"2022-07-18T23:47:29.901Z","dependency_job_id":null,"html_url":"https://github.com/edin-m/node-deliedit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edin-m%2Fnode-deliedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edin-m%2Fnode-deliedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edin-m%2Fnode-deliedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/edin-m%2Fnode-deliedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/edin-m","download_url":"https://codeload.github.com/edin-m/node-deliedit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246042013,"owners_count":20714147,"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":["delimiter","javascript","passthrough"],"created_at":"2024-10-02T04:05:55.442Z","updated_at":"2025-03-28T14:14:45.424Z","avatar_url":"https://github.com/edin-m.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-deliedit\nNode js delimited text editing library.\n\n[![npm version](https://badge.fury.io/js/deliedit.svg)](https://badge.fury.io/js/deliedit)\n[![Build Status](https://travis-ci.org/edin-m/node-deliedit.svg?branch=master)](https://travis-ci.org/edin-m/node-deliedit)\n\nNode js library for editing stream of text based on delimiters.\n\nFor example: \n\n```\n...\n\u003chtml lang=\"en\"\u003e\n...\n    before delimiter\n\n    \u003c!-- startedit: html --\u003e\n\n    in delimiter\n\n    \u003c!-- endedit: html --\u003e\n\n    after delimiter\n...\n\u003c/html\u003e\n```\n\nwith:\n\n```\nvar Deliedit = require('deliedit').Deliedit;\nvar uppercase = function(char) { return char.toUpperCase(); };\n\nvar deliedit = new Deliedit({\n  delimiters: {\n    start: '\u003c!-- startedit: html --\u003e',\n    end: '\u003c!-- endedit: html --\u003e'\n  },\n  invert: false,\n  withDelimiters: true,\n  transformFunc: uppercase\n});\n\nfs.createReadStream('in.html').pipe(deliedit).pipe(process.stdout);\n```\n\nresults in:\n```\n...\n\u003chtml lang=\"en\"\u003e\n...\n    before delimiter\n\n    \u003c!-- startedit: html --\u003e\n\n    IN DELIMITER\n\n    \u003c!-- endedit: html --\u003e\n\n    after delimiter\n...\n\u003c/html\u003e\n```\n\nOptions\n===\n```\nvar deliedit = new Delimiter(opts);\n```\n\nwhere:\n- *opts.delimiter.start* - start delimiter\n- *opts.delimiter.end* - end delimiter\n- *opts.invert* - apply transformation function to inside delimiter (if false) or outside delimiter (if true)\n- *opts.withDelimiters* - include delimiters themselves in output\n- *opts.transformFunc* - transformation function: passthrough, ignorechar, uppercase available - defaults to passthrough\n\n- *opts.transform* - DEPRECATED\n\nTODO\n===\n\n - Add support for some other internal transformations\n   eg.  html comment / uncomment\n        js comment / uncomment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedin-m%2Fnode-deliedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fedin-m%2Fnode-deliedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fedin-m%2Fnode-deliedit/lists"}