Coder Social home page Coder Social logo

jaid / insert-string-before Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.87 MB

Inserts a string before a needle's start in a haystack.

Home Page: https://github.com/Jaid/insert-string-before

License: MIT License

JavaScript 100.00%
insert insert-string insert-string-before string util utility strings lib library

insert-string-before's Introduction

insert-string-before

License Sponsor insert-string-before
Build status Commits since v1.0.1 Last commit Issues
Latest version on npm Dependents Downloads

Inserts a string before a needle's start in a haystack.

Installation

insert-string-before on npm

npm install --save insert-string-before@^1.0.1

insert-string-before on Yarn

yarn add insert-string-before@^1.0.1

@jaid/insert-string-before on GitHub Packages
(if configured properly)

npm install --save @jaid/insert-string-before@^1.0.1

Example

import insertStringBefore from "insert-string-before"

const result = insertStringBefore("I am the Hedgehog!", "the", "Sanic ")

Variable result will be:

"I am Sanic the Hedgehog!"

Development

Setting up:

git clone [email protected]:jaid/insert-string-before.git
cd insert-string-before
npm install

Testing:

npm run test:dev

Testing in production environment:

npm run test

License

MIT License
Copyright © 2020, Jaid <[email protected]> (github.com/jaid)

insert-string-before's People

Contributors

actions-user avatar github-actions[bot] avatar jaid avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.