1.0.8 • Published 5 years ago

string_handler v1.0.8

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

String Handler Package - string_handler

Apology Note

  • I apologize to those who downloaded the package and could not use it, I made a mistake when uploading the version to NPM and did not contain the entire implementation of Handler.

Description

  • This package contains a simple string handler for mapping and manipulating data, object arrays, and strings. I'm implementing more methods over time, if anyone has tips send me through GitHub.

Instructions

  • Install this package

npm i string_handler

  • Object Array To String - for map and object array to a single string use this method:
const strHandler = require('string_handler/lib/string');


// Data to example
const object = [{ text: 'Text' }, { text: 'here' }, { text: 'please.' }]
const propertyName = 'text'
const separator = '| or space or , or whatever ypu want';

/*
  Call method 'objectArrayToString' and pass the three args
  First the Object array, and second the Property Name to
  be mapped as string and third the separator for join
*/

str.objectArrayToString(object, propertyName, separator)

// Method return: 'Text here please'
1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago