Displaying 1 to 20 from 87 results

multiline - Multiline strings in JavaScript

  •    Javascript

Use ES2015 template literals instead whenever possible.It works by wrapping the text in a block comment, anonymous function, and a function call. The anonymous function is passed into the function call and the contents of the comment extracted.

hasha - Hashing made simple. Get the hash of a buffer/string/stream/file.

  •    Javascript

Hashing made simple. Get the hash of a buffer/string/stream/file.Convenience wrapper around the core crypto Hash class with simpler API and better defaults.

grunt-replace - Replace text patterns with applause.

  •    Javascript

Replace text patterns with applause. Define patterns that will be used to replace the contents of source files.




Random Text Generator

  •    CSharp

Generate random strings (words), sentences, and paragraphs.

vinyl-source-stream - :cyclone: Use conventional text streams at the start of your gulp or vinyl pipelines

  •    Javascript

Use conventional text streams at the start of your gulp or vinyl pipelines, making for nicer interoperability with the existing npm stream ecosystem.Take, for example, browserify. There are the gulp-browserify and gulpify plugins, which you can use in combination with gulp to get browserify working in your build. Unfortunately, these plugins come with additional overhead: an extra GitHub repository, npm module, maintainer, tests, semantics, etc. It's much simpler in this case to use the original module directly where you can, which is what vinyl-source-stream handles for you.

url-pattern - easier than regex string matching patterns for urls and other strings

  •    CoffeeScript

easier than regex string matching patterns for urls and other strings. turn strings into data or data into strings.a pattern is immutable after construction. none of its methods changes its state. that makes it easier to reason about.


grunt-text-replace - General purpose text replacement for grunt

  •    Javascript

Replace text in files using strings, regexs or functions. replace is the top level task that goes in your grunt.initConfig({}). It is a multi-task, meaning that it must contain targets, which you can name anything you like.

subsume - Embed data in other data and easily extract it when needed

  •    Javascript

Can for example be useful when you run a child process that has multiple entities writing to stdout and you want to handle those outputs differently. I personally use it in run-jxa to allow the code run in that context to use console.log, but also allow me to send the result of the execution back through console.log.Returns a new subsume instance.

unique-string - Generate a unique random string

  •    Javascript

Returns a 32 character unique string. Matches the length of MD5, which is unique enough for non-crypto purposes.

repeating - Repeat a string - fast

  •    Javascript

Times the string should be repeated.String to repeat.

replace-string - Replace all substring matches in a string

  •    Javascript

Similar to String#replace(), but supports replacing multiple matches. You could achieve something similar by putting the string in a RegExp constructor with the global flag and passing it to String#replace(), but you would then have to first escape the string anyways.Returns a new string with all needle matches replaced with replacement.