Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

split-at

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

split-at - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

5

index.js
'use strict';
var arrify = require('arrify');
var numSort = require('num-sort');

@@ -8,5 +9,3 @@ module.exports = function (str, i) {

arrify(i).sort(function (a, b) {
return a - b;
}).forEach(function (el, i) {
arrify(i).sort(numSort.asc).forEach(function (el, i) {
el++;

@@ -13,0 +12,0 @@ ret.push(str.slice(lastIndex, el));

{
"name": "split-at",
"version": "1.0.0",
"version": "1.0.1",
"description": "Split a string at one or more indices",

@@ -33,3 +33,4 @@ "license": "MIT",

"dependencies": {
"arrify": "^1.0.0"
"arrify": "^1.0.0",
"num-sort": "^1.0.0"
},

@@ -36,0 +37,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc