Some nice functions for string manipulation on Node.js

npm install str
2 downloads in the last month

Node Str 0.0.1

Some nice functions for string manipulation.


$ npm install str


var str = require('str');

// 1. Format
var formated = str.format('Hello {0} {1}', firstName, lastName);

// 2. Extensions to String
var startsWith = 'Mambru went to the war'.startsWith('Mambru') //returns true;
var endsWith = 'Mambru went to the war'.endsWith('war') //returns true;

License (MIT)

Copyright (c) 2012, Leandro Boffi.

Author: Leandro Boffi

npm loves you