easy-select-js

1.0.1 • Public • Published

##Easy Select JS

** This Package created to help some developers and shorten some time and some code.**

####Usage:

const easySelect = require('easy-select');


var myString = "String 123456 EndString";

var onlyText = easySelect.SelectText(myString);

var onlyNumbers = easySelect.SelectNumbers(myString);

var Between = easySelect.SelectBetween(myString, "1", "6");

var From = easySelect.SelectBetween(myString, "4");

var To = asySelect.SelectTo(myString, "3");

console.log("Only Text: " + onlyText); //output: "String EndString";
console.log("Only Numbers: " + onlyNumbers); //output: "123456";
console.log("Between: " + Between); //output: "2345";
console.log("From: " + From); //output: "56 EndString";
console.log("To: " + To); //output: "String 12";

Package Sidebar

Install

npm i easy-select-js

Weekly Downloads

7

Version

1.0.1

License

ISC

Unpacked Size

2.83 kB

Total Files

5

Last publish

Collaborators

  • amir-78