Comparing version 3.3.1 to 3.3.2
@@ -0,1 +1,5 @@ | ||
3.3.1 / 2016-10-11 | ||
--------------------- | ||
- added `equalsIgnoreCase` [#185](https://github.com/jprichardson/string.js/issues/185) | ||
3.3.1 / 2015-08-06 | ||
@@ -2,0 +6,0 @@ --------------------- |
@@ -85,3 +85,3 @@ !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.S=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){ | ||
var VERSION = '3.3.1'; | ||
var VERSION = '3.3.2'; | ||
@@ -210,2 +210,7 @@ var ENTITIES = {}; | ||
}, | ||
equalsIgnoreCase: function(prefix) { | ||
var s = this.s; | ||
return s.toLowerCase() == prefix.toLowerCase() | ||
}, | ||
@@ -212,0 +217,0 @@ latinise: function() { |
@@ -8,3 +8,3 @@ /* | ||
var VERSION = '3.3.1'; | ||
var VERSION = '3.3.2'; | ||
@@ -133,2 +133,7 @@ var ENTITIES = {}; | ||
}, | ||
equalsIgnoreCase: function(prefix) { | ||
var s = this.s; | ||
return s.toLowerCase() == prefix.toLowerCase() | ||
}, | ||
@@ -135,0 +140,0 @@ latinise: function() { |
{ | ||
"name": "string", | ||
"version": "3.3.1", | ||
"version": "3.3.2", | ||
"description": "string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://stringjs.com", |
@@ -34,6 +34,13 @@ [string.js](http://stringjs.com) | ||
npm install --save string | ||
1. If you want to use this library, you first need to install the [Node.js] (https://nodejs.org/en/). | ||
2. When you install node.js, will also be installed [npm] (https://www.npmjs.com/). | ||
3. Please run the following command. | ||
``` | ||
npm install --save string | ||
``` | ||
Experiment with String.js Now | ||
@@ -68,6 +75,6 @@ ----------------------------- | ||
<!-- HTML5 --> | ||
<script src="https://cdn.rawgit.com/jprichardson/string.js/master/lib/string.min.js"></script> | ||
<script src="https://cdn.rawgit.com/jprichardson/string.js/master/dist/string.min.js"></script> | ||
<!-- Note that in the mime type for Javascript is now officially 'application/javascript'. If you | ||
set the type to application/javascript in IE browsers, your Javscript will fail. Just don't set a | ||
set the type to application/javascript in IE browsers, your Javacript will fail. Just don't set a | ||
type via the script tag and set the mime type from your server. Most browsers look at the server mime | ||
@@ -77,3 +84,3 @@ type anyway --> | ||
<!-- For HTML4/IE --> | ||
<script type="text/javascript" src="https://cdn.rawgit.com/jprichardson/string.js/master/lib/string.min.js"></script> | ||
<script type="text/javascript" src="https://cdn.rawgit.com/jprichardson/string.js/master/dist/string.min.js"></script> | ||
``` | ||
@@ -116,3 +123,3 @@ | ||
### Browser Compatiblity | ||
### Browser Compatibility | ||
@@ -710,3 +717,3 @@ `string.js` has been designed to be compatible with Node.js and with IE6+, Firefox 3+, Safari 2+, Chrome 3+. Please [click here][browsertest] to run the tests in your browser. Report any browser issues here: https://github.com/jprichardson/string.js/issues | ||
```javascript | ||
S('This is all very fun').splitRight(' '); // ['THis', 'built', 'this', 'city']; | ||
S('This is all very fun').splitRight(' '); // ['This', 'is', 'all', 'very', 'fun']; | ||
S('and I could do it forever').splitRight(' ', 1); // ['and I could do it', 'forever']; | ||
@@ -888,3 +895,3 @@ S('but nothing matters in the end.').splitRight(' ', -1, 2); // ['the', 'end.']; | ||
- `escape`: The character that escapes any incline `qualifier` characters. Default: `\`, in JS this is `\\` | ||
- `encloseNumbers`: Enclose number objects with the `qualifier` chracter. Default: `true` | ||
- `encloseNumbers`: Enclose number objects with the `qualifier` character. Default: `true` | ||
- `keys`: If the input isn't an array, but an object, then if this is set to true, the keys will be output to the CSV line, otherwise it's the object's values. Default: `false`. | ||
@@ -1145,3 +1152,3 @@ | ||
- break up this module into smaller logically grouped modules. The Node.js version would probably always include most of the functions. https://github.com/jprichardson/string.js/issues/10 | ||
- allow a more functional style similar to Underscore and lowdash. This may introduce a `chain` function though. https://github.com/jprichardson/string.js/issues/49 | ||
- allow a more functional style similar to Underscore and Lodash. This may introduce a `chain` function though. https://github.com/jprichardson/string.js/issues/49 | ||
- language specific plugins i.e. https://github.com/jprichardson/string.js/pull/46 | ||
@@ -1157,3 +1164,3 @@ - move this repo over to https://github.com/stringjs | ||
Copyright (C) 2012-2014 JP Richardson <jprichardson@gmail.com> | ||
Copyright (C) 2012-2016 JP Richardson <jprichardson@gmail.com> | ||
@@ -1160,0 +1167,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
2163
0
1174
2
168602
21