Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

string-splice

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-splice - npm Package Compare versions

Comparing version
1.1.0
to
1.2.0
+3
.travis.yml
language: node_js
node_js:
- "node"
var splice = require('./spliceString.js');
var assert = require('assert');
var exampleString = 'abcdefg';
var output = splice(exampleString, 1, 2, 'ZZZ');
//'aZZZdefg'
if (assert.equal(output, 'aZZZdefg')) {
return 0;
} else {
return 1;
}
+2
-2
{
"name": "string-splice",
"version": "1.1.0",
"version": "1.2.0",
"description": "simple function to provide array-like splice functionality to strings",
"main": "spliceString.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node spliceString.test.js"
},

@@ -9,0 +9,0 @@ "repository": {

@@ -13,3 +13,3 @@ #Useage:

splice(exampleString, 1, 2, 'ZZZ');
//'aZZZcdefg'
//'aZZZdefg'
```

@@ -16,0 +16,0 @@