├── .gitattributes ├── .gitignore ├── logo.png ├── .travis.yml ├── .jshintrc ├── .editorconfig ├── index.js ├── test.js ├── license ├── readme.md └── package.json /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.log -------------------------------------------------------------------------------- /logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stephenplusplus/sindredash/HEAD/logo.png -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - 'iojs' 5 | - '0.12' 6 | - '0.10' 7 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "node": true, 3 | "esnext": true, 4 | "bitwise": true, 5 | "camelcase": true, 6 | "curly": true, 7 | "immed": true, 8 | "newcap": true, 9 | "noarg": true, 10 | "undef": true, 11 | "unused": "vars", 12 | "strict": true 13 | } 14 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = tab 5 | end_of_line = lf 6 | charset = utf-8 7 | trim_trailing_whitespace = true 8 | insert_final_newline = true 9 | 10 | [package.json] 11 | indent_style = space 12 | indent_size = 2 13 | 14 | [*.md] 15 | trim_trailing_whitespace = false -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var camelcase = require('camelcase'); 4 | var modules = Object.keys(require('./package.json').dependencies); 5 | 6 | module.exports = modules.reduce(function (acc, dependency) { 7 | acc[camelcase(dependency)] = require(dependency); 8 | return acc; 9 | }, {}); 10 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | /*globals describe, it*/ 2 | 3 | 'use strict'; 4 | 5 | var carrotdash = require('./'); 6 | var assert = require('assert'); 7 | var decamelize = require('decamelize'); 8 | 9 | describe('sindredash', function () { 10 | it('returns something for each module', function () { 11 | for (var module in carrotdash) { 12 | assert.deepEqual(carrotdash[module], require(decamelize(module, '-'))); 13 | } 14 | }); 15 | }); 16 | -------------------------------------------------------------------------------- /license: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) Sindre Sorhus (sindresorhus.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | # sindredash 2 | > Fighting back against modularity - a [@sindresorhus](https://github.com/sindresorhus) utility suite. 3 | 4 | 5 |

6 | 7 | 8 | ## use 9 | ```sh 10 | $ npm install --save sindredash 11 | ``` 12 | ```js 13 | var sindredash = require('sindredash'); 14 | // sindredash.hasDom(); 15 | // sindredash.isHtml(); 16 | // sindredash.compareUrls(); 17 | // ... 18 | ``` 19 | 20 | [Supporting Sindre's libraries that have been modified since 2015, 'cause I don't have all day, damn.](package.json) 21 | 22 | 23 | ## other ways to use 24 | ```sh 25 | $ npm install os-name archs node-platforms win-release osx-release xdg-basedir user-home default-uid sudo-block root-check downgrade-root has-dom is-stream is-html is-md is-binary-path is-progressive unique-random unique-random-array alpha-sort sort-on each-async markdown-extensions binary-extensions modify-values modify-keys lowercase-keys dot-prop debug-log get-stdin caller-path caller-callsite detect-newline newline-br pad-stream strip-ansi humanize-string decamelize camelcase titleize untildify strip-css-comments strip-json-comments filename-reserved-regex valid-filename filenamify filenamify-url normalize-url humanize-url strip-url-auth strip-outer compare-urls condense-whitespace trim-repeated prepend-http get-urls multiline superb random-word dog-names cat-names somebody npm-name npm-keyword registry-url package-json bower-name github-username is-up public-ip ipify cpy cp-file read-chunk globby 26 | ``` 27 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "sindredash", 3 | "version": "1.1.0", 4 | "description": "Fighting back against modularity - a Sindre utility suite.", 5 | "repository": "stephenplusplus/sindredash", 6 | "scripts": { 7 | "test": "mocha" 8 | }, 9 | "files": [ 10 | "index.js" 11 | ], 12 | "keywords": [ 13 | "sindre", 14 | "sorhus", 15 | "sindresorhus", 16 | "utility", 17 | "lodash", 18 | "underscore" 19 | ], 20 | "author": "Stephen Sawchuk", 21 | "license": "MIT", 22 | "dependencies": { 23 | "alpha-sort": "^1.0.1", 24 | "archs": "^1.0.0", 25 | "binary-extensions": "^1.0.1", 26 | "bower-name": "^1.0.1", 27 | "caller-callsite": "^1.0.0", 28 | "caller-path": "^1.0.0", 29 | "camelcase": "^1.0.2", 30 | "cat-names": "^1.0.1", 31 | "compare-urls": "^1.0.0", 32 | "condense-whitespace": "^1.0.0", 33 | "cp-file": "^2.0.2", 34 | "cpy": "^2.0.0", 35 | "debug-log": "^1.0.0", 36 | "decamelize": "^1.0.0", 37 | "default-uid": "^1.0.0", 38 | "detect-newline": "^1.0.2", 39 | "dog-names": "^1.0.1", 40 | "dot-prop": "^1.0.1", 41 | "downgrade-root": "^1.1.0", 42 | "each-async": "^1.1.1", 43 | "filename-reserved-regex": "^1.0.0", 44 | "filenamify": "^1.0.1", 45 | "filenamify-url": "^1.0.0", 46 | "get-stdin": "^4.0.1", 47 | "get-urls": "^4.0.0", 48 | "github-username": "^1.1.1", 49 | "globby": "^1.1.0", 50 | "has-dom": "^1.0.0", 51 | "humanize-string": "^1.0.1", 52 | "humanize-url": "^1.0.1", 53 | "ipify": "^1.0.3", 54 | "is-binary-path": "^1.0.0", 55 | "is-html": "^1.0.0", 56 | "is-md": "^1.0.0", 57 | "is-progressive": "^1.0.0", 58 | "is-stream": "^1.0.1", 59 | "is-up": "^1.0.3", 60 | "lowercase-keys": "^1.0.0", 61 | "markdown-extensions": "^1.1.0", 62 | "modify-keys": "^1.0.0", 63 | "modify-values": "^1.0.0", 64 | "multiline": "^1.0.2", 65 | "newline-br": "^1.0.0", 66 | "node-platforms": "^1.0.0", 67 | "noop3": "^13.7.2", 68 | "normalize-url": "^1.0.2", 69 | "npm-keyword": "^1.0.1", 70 | "npm-name": "^1.0.3", 71 | "os-name": "^1.0.3", 72 | "osx-release": "^1.0.0", 73 | "package-json": "^1.0.1", 74 | "pad-stream": "^1.0.0", 75 | "prepend-http": "^1.0.1", 76 | "public-ip": "^1.0.2", 77 | "random-word": "^1.0.1", 78 | "read-chunk": "^1.0.1", 79 | "registry-url": "^2.1.0", 80 | "root-check": "^1.0.0", 81 | "somebody": "^2.0.0", 82 | "sort-on": "^1.0.1", 83 | "strip-ansi": "^2.0.1", 84 | "strip-css-comments": "^2.0.0", 85 | "strip-json-comments": "^1.0.2", 86 | "strip-outer": "^1.0.0", 87 | "strip-url-auth": "^1.0.0", 88 | "sudo-block": "^1.1.0", 89 | "superb": "^1.1.2", 90 | "titleize": "^1.0.0", 91 | "trim-repeated": "^1.0.0", 92 | "unique-random": "^1.0.0", 93 | "unique-random-array": "^1.0.0", 94 | "untildify": "^2.0.0", 95 | "user-home": "^1.1.1", 96 | "valid-filename": "^1.0.0", 97 | "win-release": "^1.0.0", 98 | "xdg-basedir": "^1.0.1" 99 | }, 100 | "devDependencies": { 101 | "jshint": "^2.6.0", 102 | "mocha": "^2.1.0" 103 | } 104 | } 105 | --------------------------------------------------------------------------------