Write the content in a file after removing the trailing spaces.
Remove spaces and tabs around line-breaks
Trim newlines from the start and/or end of a string
Remove final line feeds from a string
Trim a consecutively repeated substring: foo--bar---baz → foo-bar-baz
Spacetrim is trimming string from all 4 sides.
Similar to String#trim() but removes only newlines
Write files in an atomic fashion w/configurable ownership
TailwindCSS leading-trim utility classes.
Like String.trim() but you can choose granularly what to trim
A tiny library for trimming whitespace from a canvas element
Functions for modifying a unified-latex AST
Read and write files atomically and reliably.
fs read and write streams based on minipass
Trim the whitespace within an array of GLSL tokens
ES5 spec-compliant shim for String.prototype.trim
fs read and write streams based on minipass
Read and parse a JSON file
The Node.js bindings of the humanfs library.
Stringify and write JSON to a file atomically
The Lodash method `_.trim` exported as a module.
Video trimmer for your React Native app
Stringify and write YAML to a file atomically
Trim whitespace characters from the beginning and end of a string.
Redundancy is a Ruby program that loads the .zsh_history, .bash_history, .irb_history files, and applies the built-in Ruby uniq! function to trim any duplicate commands present. It then writes the filtered output back to the appropriate file. The source code works better as an Apple Shortcut, as there is a significant delay running redundancy when Terminal is open (several closings and reopenings).
PythonConfig is a module with classes for parsing and writing Python configuration files created by the ConfigParser classes in Python. These files are structured like this: [Section Name] key = value otherkey: othervalue [Other Section] key: value3 otherkey = value4 Leading whitespace before values are trimmed, and the key must be the at the start of the line - no leading whitespace there. You can use : or = . Multiline values are supported, as long as the second (or third, etc.) lines start with whitespace: [Section] bigstring: This is a very long string, so I'm not sure I'll be able to fit it on one line, but as long as there is one space before each line, I'm ok. Tabs work too. Also, this class supports interpolation: [Awards] output: Congratulations for winning %(prize)! prize: the lottery Will result in: config.sections["Awards"]["output"] == "Congratulations for winning the lottery!" You can also access the sections with the dot operator, but only with all-lowercase: [Awards] key:value [prizes] lottery=3.2 million config.awards["key"] #=> "value" config.prizes["lottery"] #=> "3.2 million" You can modify any values you want, though to add sections, you should use the add_section method. config.sections["prizes"]["lottery"] = "100 dollars" # someone hit the jackpot config.add_section("Candies") config.candies["green"] = "tasty" When you want to output a configuration, just call its +to_s+ method. File.open("output.ini","w") do |out| out.write config.to_s end
Diff and patch tables
Diff and patch tables