Check if a string is a valid filename
Convert a URL to a valid filename
Check if a string is a valid filename.
Check if a string is a valid filename
Convert a URL to a valid filename
Convert a URL to a valid filename
Convert a string to a valid safe filename
shim for require.main.filename() that works in as many environments as possible
Astro’s [Go](https://golang.org/) + WASM compiler.
Generate a unique filename for use in temporary directories or caches.
Easily read/write JSON files.
A function to check whether a prop is valid for HTML and SVG elements
A transport for winston which logs to a rotating file each day.
Sanitize a string for use as a filename
Write files in an atomic fashion w/configurable ownership
Returns a valid filename from whatever was sent as a param.
Create and parse Content-Disposition header
Mighty but tiny URI parser
Check if a filename is safe to use in a path join operation
Return the filename and line number of the calling function
Give me a string and I'll tell you if it's a valid npm package name
Regular expression for matching file names, with or without extension.
Regular expression for matching reserved filename characters
Return the filename and line number of the calling function
replace invalid chars
Simple converter between URIs and Pathnames. It creates valid, unique and readable filenames from URIs and viceversa. It can be used to name files while saving data from websites and conversely, read files assigned to URIs while, for instance, simulating or stubbing web accesses by means of reading files
A simple file-system-based cache wrapper. The main method is 'with_cache( :cache_key=>'something_unique', :timeout_seconds=>(an integer) ){ (...) }' If the given cache key exists and has not timed out, it will return the cached value If not, it will * yield to the given block * store the result of the given block in the cache with the given key * return the result of the given block Required params: * :cache_key=>'some unique string that is valid in a filename' Optional params: * :timeout_seconds => (an integer - default 3600) * :cache_dir => (an absolute path - defaults to RAILS_ROOT/tmp/cache if RAILS_ROOT is defined, otherwise /tmp/cache ) Example usage: @stats_json = Itrigga::Cache::FileCache.with_cache(:cache_key=>'admin_stats.json', :timeout_seconds=>600){ /* some expensive remote API / slow IO call here /* }
No description provided.
No description provided.
No description provided.
No description provided.