Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

highly-attractive-node-utils

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

highly-attractive-node-utils - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

lib/url/cleanPath.js

1

lib/url/index.js
module.exports = {
cleanString: require('./cleanString'),
cleanPath: require('./cleanPath'),
getPath: require('./getPath'),

@@ -4,0 +5,0 @@ isFullUrl: require('./isFullUrl'),

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc