🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

string-split

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

string-split

String.prototype.split as a curried function.

0.2.2
Source
npm
Version published
Weekly downloads
55
-14.06%
Maintainers
1
Weekly downloads
 
Created
Source

string-split

String.prototype.split as a curried function.

Build Status Code Climate js-standard-style

npm install string-split --save
npm stats

npm NPM downloads David David

API Examples & Inspiration

Require
var split = require('string-split');
Equivalent to "example.com".split(".")
split(".", "example.com");
//=> ["example", "com"]
Transform a list with a custom split pattern
var transform = split("::");
var foodtypes = ["Entree::Seafood", "Entree::Chicken"];

foodtypes.map(transform);
//=> [ ["Entree", "Seafood"], ["Entree", "Chicken"] ]

License

GitHub license

Keywords

curry

FAQs

Package last updated on 28 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts