highly-attractive-node-utils
Advanced tools
Comparing version 1.2.0 to 1.3.0
module.exports = { | ||
cleanString: require('./cleanString'), | ||
cleanPath: require('./cleanPath'), | ||
getPath: require('./getPath'), | ||
@@ -4,0 +5,0 @@ isFullUrl: require('./isFullUrl'), |
{ | ||
"name": "highly-attractive-node-utils", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Collection of helper modules for Node.js", | ||
@@ -8,3 +8,3 @@ "main": "index.js", | ||
"test": "./node_modules/.bin/mocha", | ||
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec && open ./coverage/lcov-report/index.html", | ||
"coverage": "./node_modules/.bin/istanbul cover ./node_modules/.bin/_mocha -- -R spec", | ||
"test-cover": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose" | ||
@@ -11,0 +11,0 @@ }, |
## Highly Attractive Node Utilities | ||
## Notice!! | ||
This module is an alias of [@highly-attractive-people/node-utils](https://www.npmjs.com/package/@highly-attractive-people/node-utils) for those projects which cannot yet update NPM to support [scopes](https://docs.npmjs.com/misc/scope). Use that module in your dependencies rather than `highly-attractive-node-utils`. Kthxbai. | ||
[![npm version](https://badge.fury.io/js/highly-attractive-node-utils.svg)](http://badge.fury.io/js/highly-attractive-node-utils) | ||
[![Build Status](https://travis-ci.org/highly-attractive-people/nodeUtils.svg)](https://travis-ci.org/highly-attractive-people/nodeUtils) | ||
@@ -11,3 +9,3 @@ [![Coverage Status](https://coveralls.io/repos/highly-attractive-people/nodeUtils/badge.svg)](https://coveralls.io/r/highly-attractive-people/nodeUtils) | ||
``` | ||
npm install @highly-attractive-people/node-utils --save | ||
npm install highly-attractive-node-utils --save | ||
``` | ||
@@ -14,0 +12,0 @@ |
@@ -66,1 +66,15 @@ var assert = require('chai').assert; | ||
}); | ||
describe('url.cleanPath', function() { | ||
it('should clean sets scalar values as expected', function() { | ||
assert.equal(url.cleanPath('Quick Brown Fox in a Tree', ['MyFace', 123, false, 'go home']), | ||
'quick-brown-fox-in-a-tree/myface-123-false-go-home'); | ||
assert.equal(url.cleanPath('Tom Petty & The Heart Breakers', '*NSync', '20,000 Leagues Under The Sea'), | ||
'tom-petty-and-the-heart-breakers/nsync/20-000-leagues-under-the-sea'); | ||
}); | ||
it('should clean mixed values as expected', function() { | ||
assert.equal(url.cleanPath(' basketball', ['is', 'my', 'favorite'], {'name':'value'}, ' sport '), | ||
'basketball/is-my-favorite/sport'); | ||
}); | ||
}); |
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
8483
12
190
24