@devben/searchy
v1.0.2
Published
filter any objects array by string
Downloads
2
Readme
Prerequisites
This is an example of how to list things you need to use the software and how to install them.
- npm
npm install @devben/searchy
Installation
Below is an example of how you can instruct your audience on installing and setting up your app. This template doesn't rely on any external dependencies or services.
Install NPM packages
npm install @devben/searchy
Import the package
import searchy from '@devben/searchy';
Use the package
const array = [{ "id": "6183c8dccfc4a090e9174af0", "firstName":"Molina Mcknight", "email": "[email protected]", "lastName":"Digiprint", "state": 'inactive' }, { "id": "6183c8dcf34190a21d291bfa", "firstName":"Beverly Walls", "email": "[email protected]", "lastName":"Vendblend", "state": 'active' }, { "id": "6183c8dc087471c31f25b976", "firstName":"Hawkins Richardson", "email": "[email protected]", "lastName":"Arctiq", "state": 'active' } ];
const search = new Searchy;
let results = search.find('beverly Digiprint', array);
return ---> [{ "id": "6183c8dcf34190a21d291bfa", "firstName":"Beverly Walls", "email": "[email protected]", "lastName":"Vendblend", "state": 'active' }];
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- USAGE EXAMPLES -->
## Usage
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- ROADMAP -->
## Roadmap
- [x] Add Changelog
- [x] Add back to top links
- [] Add Additional Templates w/ Examples
- [] Add "components" document to easily copy & paste sections of the readme
- [] Multi-language Support
- [] Chinese
- [] Spanish
See the [open issues](https://github.com/othneildrew/Best-README-Template/issues) for a full list of proposed features (and known issues).
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- CONTRIBUTING -->
## Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- LICENSE -->
## License
Distributed under the MIT License. See `LICENSE.txt` for more information.
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- CONTACT -->
## Contact
Website Link: [https://www.devben.app](devben.app)
<p align="right">(<a href="#top">back to top</a>)</p>
<!-- ACKNOWLEDGMENTS -->
## Acknowledgments
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!
* [Choose an Open Source License](https://choosealicense.com)
<p align="right">(<a href="#top">back to top</a>)</p>