@appres/filename
v0.0.7
Published
File name related functions
Downloads
7
Readme
File name related functions
Description
Remove unusable characters from the file name. In other words, it only returns the available strings.
Install
npm i @appres/filename
Import
const FileName = require('@appres/filename');
or
import { FileName } from '@appres/filename';
Usage
let filename1 = FileName.valid("some_file_name.txt");
let filename2 = FileName.valid("../../*?some_?*file_name.txt.");
Return will be same to "some_file_name.txt"