You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
npmnpm
Version published
Weekly downloads
35
-10.26%
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