filenamify - Convert a string to a valid safe filename

  •        624

On Unix-like systems / is reserved and <>:"/\|?* on Windows.Accepts a filename and returns a valid filename.

https://github.com/sindresorhus/filenamify

Dependencies:

filename-reserved-regex : ^2.0.0
strip-outer : ^1.0.0
trim-repeated : ^1.0.0

Tags
Implementation
License
Platform

   




Related Projects

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.

saveSvgAsPng - Save SVGs as PNGs from the browser.

  •    HTML

The filename is the preferred filename when saving the image to the file system. The browser may change the name of the file if there is already a file by that name in the target directory. Other options are documented below.

busboy - A streaming parser for HTML form data for node.js

  •    Javascript

A node.js module for parsing incoming HTML form data.file(< string >fieldname, < ReadableStream >stream, < string >filename, < string >transferEncoding, < string >mimeType) - Emitted for each new file form field found. transferEncoding contains the 'Content-Transfer-Encoding' value for the file stream. mimeType contains the 'Content-Type' value for the file stream.

pixo - Convert SVG icons into React components

  •    Javascript

Pass a directory or SVG file path as the first argument. Each SVG icon will be automatically optimized and renamed to a pascal case filename for the component. Icon components can then be imported into a React application.


jsesc - Given some data, jsesc returns the shortest possible stringified & ASCII-safe representation of that data

  •    Javascript

For any input, jsesc generates the shortest possible valid printable-ASCII-only output. Here’s an online demo.jsesc’s output can be used instead of JSON.stringify’s to avoid mojibake and other encoding issues, or even to avoid errors when passing JSON-formatted data (which may contain U+2028 LINE SEPARATOR, U+2029 PARAGRAPH SEPARATOR, or lone surrogates) to a JavaScript parser or an UTF-8 encoder.

kcc - KCC (a.k.a. Kindle Comic Converter) is a comic and manga converter for ebook readers.

  •    Python

Kindle Comic Converter is a Python app to convert comic/manga files or folders to EPUB, Panel View MOBI or E-Ink optimized CBZ. It was initially developed for Kindle but since version 4.6 it outputs valid EPUB 3.0 so despite its name, KCC is actually a comic/manga to EPUB converter that every e-reader owner can happily use. It can also optionally optimize images by applying a number of transformations. If you have general questions about usage, feedback etc. please post it here. If you have some technical problems using KCC please file an issue here. If you can fix an open issue, fork & make a pull request.

Silverlight String-To-PathGeometry Converter

  •    DotNet

Silverlight 2 is great technology. But for developers who used to work with WPF there are some missed helper classes, which are very handy. One of them is “PathFigureCollectionConverter” object, which accepts string with figure path definition and convert it to Geometry objec...

change-case - Convert strings between camelCase, PascalCase, Title Case, snake_case and more

  •    Javascript

Convert strings between camelCase, PascalCase, Title Case, snake_case, lowercase, UPPERCASE, CONSTANT_CASE and more. All methods support Unicode (non-ASCII characters) and non-string entities, such as objects with a toString property, numbers and booleans. Empty values (null and undefined) will result in an empty string.

CopyLocation

  •    

CopyLocation shell extension makes it easier for Windows users to copy file names to the clipboard. Copying of parts of the path like folder name, file name, short (8.3) path or UNC path is also supported. It's developed in C++ for x86 or x64 architecture.

mmmagic - An async libmagic binding for node.js for detecting content types by data inspection

  •    C++

An async libmagic binding for node.js for detecting content types by data inspection.detectFile(< String >path, < Function >callback) - (void) - Inspects the file pointed at by path. The callback receives two arguments: an < Error > object in case of error (null otherwise), and a < String > containing the result of the inspection.

ClusterNFS

  •    C

ClusterNFS allows diskless clients to share a single root filesystem by matching quot;interpretedquot; file names of the form quot;/path/filename$$KEY=value$$quot; with fallback to the original filename. Keys include HOSTNAME, IP, UID, GID, and CLIENT (always matches

Enhanced Resource File Code Generator - Type-safe Formatted Strings

  •    

An enhanced ResXFileCodeGenerator that handles formatted strings in a type-safe and natural way. Simply put, if a resource string contains replacement parameters then the resource is generated as a method otherwise the resource is generated as a normal property.

svg-mesh-3d - :rocket: converts a SVG path to a 3D mesh

  •    Javascript

A high-level module to convert a SVG <path> string into a 3D triangulated mesh. Best suited for silhouettes, like font icon SVGs.Built on top of cdt2d by @mikolalysenko, and various other modules.

mutations - Compose your business logic into commands that sanitize and validate input.

  •    Ruby

Compose your business logic into commands that sanitize and validate input. Write safe, reusable, and maintainable code for Ruby and Rails apps. Each of these mutations takes your application from one state to the next.

go-conv - Fast conversions across various Go types with a simple API.

  •    Go

Notice: If you begin getting compilation errors use the v1 import path gopkg.in/cstockton/go-conv.v1 for an immediate fix and to future-proof.Package conv provides fast and intuitive conversions across Go types. This library uses reflection to be robust but will bypass it for common conversions, for example string conversion to any type will never use reflection. All functions are safe for concurrent use by multiple Goroutines.

IIS-ShortName-Scanner - latest version of scanners for IIS short filename (8

  •    Java

The latest version of scanner for IIS short file name (8.3) disclosure vulnerability by using the tilde (~) character. Microsoft IIS contains a flaw that may lead to an unauthorized information disclosure. The issue is triggered during the parsing of a request that contains a tilde character (~). This may allow a remote attacker to gain access to file and folder name information.

react-native-star-rating - A React Native component for generating and displaying interactive star ratings

  •    Javascript

A React Native component for generating and displaying interactive star ratings. Compatible with both iOS and Android. For the emptyStar, fullStar, halfStar, and iconSet props, please refer to the react-native-vector-icons package for the valid string names for the star icons. When selecting the icon string names, you must remember to remove the font family name before the first hyphen. For example, if you want to use the ion-ios-star from the Ionicon font set, you would set the fullStar prop to ios-star and the iconSet to Ionicons.

ZooKeeper - Centralized service for maintaining configuration information

  •    Java

ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications.

nameof - Nameof operator for modern C++, simply obtain the name of a variable, type, function, macro, and enum

  •    C++

Header-only C++17 library provides nameof macros and functions to simply obtain the name of a variable, type, function, macro, and enum. Nameof returns std::string_view. If argument does not have name, returns empty string.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.