simple component for splicing (inserting) a substr in a string
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

string-splice

a simple splice utility for strings

Installation

Install with component(1):

$ component install bmcmahen/string-splice

API

var splice = require('string-splice');
var str = 'hey is cool';
var newstring = splice(str, 4, 4, 'ben ');
// hey ben is cool

License

MIT