str

Some nice functions for string manipulation on Node.js

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; 

Copyright (c) 2012, Leandro Boffi.

Author: Leandro Boffi