Package Exports
- fluentnode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fluentnode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
FluentNode
Fluent apis for node (based on the concepts used in C#'s FluentSharp
install using
npm install fluentnode
Methods implemented (NOTE LIST NOT FULLY UPDATED)
fluent-array
{array}.empty() - true if array is empty
{array}.first() - first element of an array same as array[0]
{array}.second() - second element of an array same as array[1]
{array}.third() - third element of an array same as array[2]
{array}.forth() - forth element of an array same as array[3]
{array}.size() - size of the array
fluent-assert
{Array}.assert_Is_Array
{Array}.assert_Size_Is
{Boolean}.assert_Is_True
{Boolean}.assert_Is_False
{Function}.assert_Throws
{Function}.assert_Not_Throws
{Function}.assert_Is_Function
{Number}.assert_Is_Equal_To
**{Object}.assert_Is_Equal_To
**{Object}.assert_Is_Not_Equal_To
**{Object}.assert_Is_Object
{String}.assert_Contains
**{String}.assert_Equals
{String}.assert_Is
{String}.assert_Is_Not
{String}.assert_Is_Equal_To
{String}.assert_Is_Not_Equal_To
{String}.assert_Is_Json
{String}.assert_Is_String
{String}.assert_Length_Is
{String}.assert_Length_Is_Not
{String}.assert_Not_Contains
{String}.assert_Size_Is
{String}.assert_Size_Is_Not
{String}.assert_That_File_Exists
{String}.assert_That_File_Not_Exists
{String}.assert_That_Folder_Exists
{String}.assert_That_Folder_Not_Exists
fluent-boolean
{boolean}.is_True
{boolean}.is_False
fluent-console
{object}.log() - log to console
{object}.console_log() - log to console
fluent-fs
{string}.exists() - same as {object}.fileExists()
{string}.file_Exists() - true if a file called {string} exists (same as fs.existsSync)
{string}.file_Not_Exists() - false if a file called {string} exists (same as not fs.existsSync)
{string}.is_Directory() - same as {string}.is_Folder()
{string}.is_Folder() - same as fs.lstatSync({string}).isDirectory()
{string}.is_File() - same as fs.lstatSync({string}).isFile()
{string}.files_and_Folders() - list of files and folders from folder (returns full path)
{string}.files() - list of files from folder (returns full path)
{string}.files(extension) - list of files from folder with extension (returns full path)
{string}.folders() - list of folders from folder (returns full path)
fluent-number
random_String
fluent-path
{pathA}.path.join({pathA} - same as path.join(pathA, pathB)
{pathA}.path_Combine({pathA} - same as path.join(pathA, pathB)
{path}.append_To_Process_Cwd_Path -
{path}.file_Extension
{path}.file_Name_Without_Extension
{path}.file_Name() - extracts last part of the path (same as path.basename({path})
{path}.file_Names() - extracts last part of the path (uses {path}.file_Name())
fluent-object
{object}.str() - same as {object}.toString()
{string}.json() - same as JSON.stringify({object})
{string}.json_inspect() - same as util.inspect({object}) (handles circlar references)
fluent-string
{string}.append({stringToAppend}) - same as {string} + {stringToAppend}
{string}.add_5_Random_Letters
{string}.add_Random_Chars({stringToAppend}) - adds a number of chars {stringToAppend}
**{string}.add_Random_Letters
{string}.add_Random_String({stringToAppend}) - adds a number of letters and/or numbers to {stringToAppend}
**{string}.add_Random_Numbers
**{string}.lower
{string}.size({string}) - same as {string}.length
**{string}.upper
all methods and tests are written in CoffeScript