├── .gitignore ├── .jshintrc ├── .npmignore ├── .travis.yml ├── README.md ├── _build ├── add.js ├── config.js ├── doc_template │ ├── assets_ │ │ ├── css │ │ │ ├── main.css │ │ │ ├── shCore.css │ │ │ └── shThemeDefault.css │ │ └── js │ │ │ ├── lib │ │ │ ├── jquery.js │ │ │ ├── require.js │ │ │ └── syntax-highlighter │ │ │ │ ├── shAutoloader.js │ │ │ │ ├── shBrushAS3.js │ │ │ │ ├── shBrushAppleScript.js │ │ │ │ ├── shBrushBash.js │ │ │ │ ├── shBrushCSharp.js │ │ │ │ ├── shBrushColdFusion.js │ │ │ │ ├── shBrushCpp.js │ │ │ │ ├── shBrushCss.js │ │ │ │ ├── shBrushDelphi.js │ │ │ │ ├── shBrushDiff.js │ │ │ │ ├── shBrushErlang.js │ │ │ │ ├── shBrushGroovy.js │ │ │ │ ├── shBrushJScript.js │ │ │ │ ├── shBrushJava.js │ │ │ │ ├── shBrushJavaFX.js │ │ │ │ ├── shBrushPerl.js │ │ │ │ ├── shBrushPhp.js │ │ │ │ ├── shBrushPlain.js │ │ │ │ ├── shBrushPowerShell.js │ │ │ │ ├── shBrushPython.js │ │ │ │ ├── shBrushRuby.js │ │ │ │ ├── shBrushSass.js │ │ │ │ ├── shBrushScala.js │ │ │ │ ├── shBrushSql.js │ │ │ │ ├── shBrushVb.js │ │ │ │ ├── shBrushXml.js │ │ │ │ ├── shCore.js │ │ │ │ └── shLegacy.js │ │ │ └── main.js │ ├── doc.hbs │ ├── footer.hbs │ ├── header.hbs │ ├── index.hbs │ └── sidebar.hbs ├── helpers.js ├── package.js └── templates │ ├── mod │ ├── collection.hbs │ ├── default.hbs │ ├── index.hbs │ └── pkg.hbs │ └── spec │ ├── default.hbs │ ├── package.hbs │ └── runner.hbs ├── build.js ├── clean.sh ├── component.json ├── doc ├── html │ ├── array.html │ ├── assets_ │ │ ├── css │ │ │ ├── main.css │ │ │ ├── shCore.css │ │ │ └── shThemeDefault.css │ │ └── js │ │ │ ├── lib │ │ │ ├── jquery.js │ │ │ ├── require.js │ │ │ └── syntax-highlighter │ │ │ │ ├── shAutoloader.js │ │ │ │ ├── shBrushAS3.js │ │ │ │ ├── shBrushAppleScript.js │ │ │ │ ├── shBrushBash.js │ │ │ │ ├── shBrushCSharp.js │ │ │ │ ├── shBrushColdFusion.js │ │ │ │ ├── shBrushCpp.js │ │ │ │ ├── shBrushCss.js │ │ │ │ ├── shBrushDelphi.js │ │ │ │ ├── shBrushDiff.js │ │ │ │ ├── shBrushErlang.js │ │ │ │ ├── shBrushGroovy.js │ │ │ │ ├── shBrushJScript.js │ │ │ │ ├── shBrushJava.js │ │ │ │ ├── shBrushJavaFX.js │ │ │ │ ├── shBrushPerl.js │ │ │ │ ├── shBrushPhp.js │ │ │ │ ├── shBrushPlain.js │ │ │ │ ├── shBrushPowerShell.js │ │ │ │ ├── shBrushPython.js │ │ │ │ ├── shBrushRuby.js │ │ │ │ ├── shBrushSass.js │ │ │ │ ├── shBrushScala.js │ │ │ │ ├── shBrushSql.js │ │ │ │ ├── shBrushVb.js │ │ │ │ ├── shBrushXml.js │ │ │ │ ├── shCore.js │ │ │ │ └── shLegacy.js │ │ │ └── main.js │ ├── collection.html │ ├── financial.html │ ├── function.html │ ├── index.html │ ├── lang.html │ ├── math.html │ ├── number.html │ ├── object.html │ ├── queryString.html │ ├── random.html │ ├── sidebar_.html │ ├── string.html │ └── time.html └── mdown │ ├── array.md │ ├── collection.md │ ├── function.md │ ├── lang.md │ ├── math.md │ ├── number.md │ ├── object.md │ ├── queryString.md │ ├── random.md │ ├── string.md │ └── time.md ├── package.json ├── src ├── array.js ├── array │ ├── append.js │ ├── combine.js │ ├── compact.js │ ├── contains.js │ ├── difference.js │ ├── every.js │ ├── filter.js │ ├── find.js │ ├── flatten.js │ ├── forEach.js │ ├── indexOf.js │ ├── insert.js │ ├── intersection.js │ ├── invoke.js │ ├── join.js │ ├── lastIndexOf.js │ ├── map.js │ ├── max.js │ ├── min.js │ ├── pick.js │ ├── pluck.js │ ├── range.js │ ├── reduce.js │ ├── reduceRight.js │ ├── reject.js │ ├── remove.js │ ├── removeAll.js │ ├── shuffle.js │ ├── some.js │ ├── sort.js │ ├── split.js │ ├── toLookup.js │ ├── union.js │ ├── unique.js │ ├── xor.js │ └── zip.js ├── collection.js ├── collection │ ├── contains.js │ ├── every.js │ ├── filter.js │ ├── find.js │ ├── forEach.js │ ├── make_.js │ ├── map.js │ ├── max.js │ ├── min.js │ ├── pluck.js │ ├── reduce.js │ ├── reject.js │ ├── size.js │ └── some.js ├── function.js ├── function │ ├── bind.js │ ├── compose.js │ ├── curry.js │ ├── debounce.js │ ├── func.js │ ├── prop.js │ ├── series.js │ └── throttle.js ├── index.js ├── lang.js ├── lang │ ├── clone.js │ ├── createObject.js │ ├── ctorApply.js │ ├── defaults.js │ ├── inheritPrototype.js │ ├── isArguments.js │ ├── isArray.js │ ├── isBoolean.js │ ├── isDate.js │ ├── isEmpty.js │ ├── isFinite.js │ ├── isFunction.js │ ├── isKind.js │ ├── isNaN.js │ ├── isNull.js │ ├── isNumber.js │ ├── isObject.js │ ├── isRegExp.js │ ├── isString.js │ ├── isUndefined.js │ ├── kindOf.js │ └── toArray.js ├── math.js ├── math │ ├── ceil.js │ ├── clamp.js │ ├── countSteps.js │ ├── floor.js │ ├── inRange.js │ ├── isNear.js │ ├── lerp.js │ ├── loop.js │ ├── map.js │ ├── norm.js │ └── round.js ├── number.js ├── number │ ├── MAX_INT.js │ ├── MAX_UINT.js │ ├── MIN_INT.js │ ├── abbreviate.js │ ├── currencyFormat.js │ ├── enforcePrecision.js │ ├── pad.js │ ├── rol.js │ ├── ror.js │ ├── sign.js │ ├── toInt.js │ ├── toUInt.js │ └── toUInt31.js ├── object.js ├── object │ ├── contains.js │ ├── deepFillIn.js │ ├── deepMixIn.js │ ├── every.js │ ├── fillIn.js │ ├── filter.js │ ├── find.js │ ├── forIn.js │ ├── forOwn.js │ ├── get.js │ ├── has.js │ ├── hasOwn.js │ ├── keys.js │ ├── map.js │ ├── max.js │ ├── merge.js │ ├── min.js │ ├── mixIn.js │ ├── namespace.js │ ├── pick.js │ ├── pluck.js │ ├── reduce.js │ ├── reject.js │ ├── set.js │ ├── size.js │ ├── some.js │ ├── unset.js │ └── values.js ├── queryString.js ├── queryString │ ├── contains.js │ ├── decode.js │ ├── encode.js │ ├── getParam.js │ ├── getQuery.js │ ├── parse.js │ └── setParam.js ├── random.js ├── random │ ├── choice.js │ ├── guid.js │ ├── rand.js │ ├── randBit.js │ ├── randHex.js │ ├── randInt.js │ ├── randSign.js │ └── random.js ├── string.js ├── string │ ├── camelCase.js │ ├── contains.js │ ├── crop.js │ ├── endsWith.js │ ├── escapeHtml.js │ ├── escapeRegExp.js │ ├── escapeUnicode.js │ ├── hyphenate.js │ ├── interpolate.js │ ├── lowerCase.js │ ├── lpad.js │ ├── ltrim.js │ ├── makePath.js │ ├── normalizeLineBreaks.js │ ├── pascalCase.js │ ├── properCase.js │ ├── removeNonASCII.js │ ├── removeNonWord.js │ ├── repeat.js │ ├── replaceAccents.js │ ├── rpad.js │ ├── rtrim.js │ ├── sentenceCase.js │ ├── slugify.js │ ├── startsWith.js │ ├── stripHtmlTags.js │ ├── trim.js │ ├── truncate.js │ ├── typecast.js │ ├── unCamelCase.js │ ├── underscore.js │ ├── unescapeHtml.js │ ├── unescapeUnicode.js │ ├── unhyphenate.js │ └── upperCase.js ├── time.js └── time │ ├── now.js │ ├── parseMs.js │ └── toTimeString.js ├── tests ├── lib │ ├── jasmine │ │ ├── MIT.LICENSE │ │ ├── jasmine-html.js │ │ ├── jasmine.async.js │ │ ├── jasmine.css │ │ └── jasmine.js │ └── requirejs │ │ └── require.js ├── runner.html ├── runner.js └── spec │ ├── array │ ├── spec-append.js │ ├── spec-combine.js │ ├── spec-compact.js │ ├── spec-contains.js │ ├── spec-difference.js │ ├── spec-every.js │ ├── spec-filter.js │ ├── spec-find.js │ ├── spec-flatten.js │ ├── spec-forEach.js │ ├── spec-indexOf.js │ ├── spec-insert.js │ ├── spec-intersection.js │ ├── spec-invoke.js │ ├── spec-join.js │ ├── spec-lastIndexOf.js │ ├── spec-map.js │ ├── spec-max.js │ ├── spec-min.js │ ├── spec-pick.js │ ├── spec-pluck.js │ ├── spec-range.js │ ├── spec-reduce.js │ ├── spec-reduceRight.js │ ├── spec-reject.js │ ├── spec-remove.js │ ├── spec-removeAll.js │ ├── spec-shuffle.js │ ├── spec-some.js │ ├── spec-sort.js │ ├── spec-split.js │ ├── spec-toLookup.js │ ├── spec-union.js │ ├── spec-unique.js │ ├── spec-xor.js │ └── spec-zip.js │ ├── collection │ ├── spec-contains.js │ ├── spec-every.js │ ├── spec-filter.js │ ├── spec-find.js │ ├── spec-forEach.js │ ├── spec-make_.js │ ├── spec-map.js │ ├── spec-max.js │ ├── spec-min.js │ ├── spec-pluck.js │ ├── spec-reduce.js │ ├── spec-reject.js │ ├── spec-size.js │ └── spec-some.js │ ├── function │ ├── spec-bind.js │ ├── spec-compose.js │ ├── spec-curry.js │ ├── spec-debounce.js │ ├── spec-func.js │ ├── spec-prop.js │ ├── spec-series.js │ └── spec-throttle.js │ ├── lang │ ├── spec-clone.js │ ├── spec-createObject.js │ ├── spec-ctorApply.js │ ├── spec-defaults.js │ ├── spec-inheritPrototype.js │ ├── spec-isArguments.js │ ├── spec-isArray.js │ ├── spec-isBoolean.js │ ├── spec-isDate.js │ ├── spec-isEmpty.js │ ├── spec-isFinite.js │ ├── spec-isFunction.js │ ├── spec-isKind.js │ ├── spec-isNaN.js │ ├── spec-isNull.js │ ├── spec-isNumber.js │ ├── spec-isObject.js │ ├── spec-isRegExp.js │ ├── spec-isString.js │ ├── spec-isUndefined.js │ ├── spec-kindOf.js │ └── spec-toArray.js │ ├── math │ ├── spec-ceil.js │ ├── spec-clamp.js │ ├── spec-countSteps.js │ ├── spec-floor.js │ ├── spec-inRange.js │ ├── spec-isNear.js │ ├── spec-lerp.js │ ├── spec-loop.js │ ├── spec-map.js │ ├── spec-norm.js │ └── spec-round.js │ ├── number │ ├── spec-MAX_INT.js │ ├── spec-MAX_UINT.js │ ├── spec-MIN_INT.js │ ├── spec-abbreviate.js │ ├── spec-currencyFormat.js │ ├── spec-enforcePrecision.js │ ├── spec-pad.js │ ├── spec-rol.js │ ├── spec-ror.js │ ├── spec-sign.js │ ├── spec-toInt.js │ ├── spec-toUInt.js │ └── spec-toUInt31.js │ ├── object │ ├── spec-contains.js │ ├── spec-deepFillIn.js │ ├── spec-deepMixIn.js │ ├── spec-every.js │ ├── spec-fillIn.js │ ├── spec-filter.js │ ├── spec-find.js │ ├── spec-forIn.js │ ├── spec-forOwn.js │ ├── spec-get.js │ ├── spec-has.js │ ├── spec-hasOwn.js │ ├── spec-keys.js │ ├── spec-map.js │ ├── spec-max.js │ ├── spec-merge.js │ ├── spec-min.js │ ├── spec-mixIn.js │ ├── spec-namespace.js │ ├── spec-pick.js │ ├── spec-pluck.js │ ├── spec-reduce.js │ ├── spec-reject.js │ ├── spec-set.js │ ├── spec-size.js │ ├── spec-some.js │ ├── spec-unset.js │ └── spec-values.js │ ├── queryString │ ├── spec-contains.js │ ├── spec-decode.js │ ├── spec-encode.js │ ├── spec-getParam.js │ ├── spec-getQuery.js │ ├── spec-parse.js │ └── spec-setParam.js │ ├── random │ ├── spec-choice.js │ ├── spec-guid.js │ ├── spec-rand.js │ ├── spec-randBit.js │ ├── spec-randHex.js │ ├── spec-randInt.js │ ├── spec-randSign.js │ └── spec-random.js │ ├── spec-array.js │ ├── spec-collection.js │ ├── spec-function.js │ ├── spec-lang.js │ ├── spec-math.js │ ├── spec-number.js │ ├── spec-object.js │ ├── spec-queryString.js │ ├── spec-random.js │ ├── spec-string.js │ ├── spec-time.js │ ├── src │ └── spec-math.js │ ├── string │ ├── spec-camelCase.js │ ├── spec-contains.js │ ├── spec-crop.js │ ├── spec-endsWith.js │ ├── spec-escapeHtml.js │ ├── spec-escapeRegExp.js │ ├── spec-escapeUnicode.js │ ├── spec-hyphenate.js │ ├── spec-interpolate.js │ ├── spec-lowerCase.js │ ├── spec-lpad.js │ ├── spec-ltrim.js │ ├── spec-makePath.js │ ├── spec-normalizeLineBreaks.js │ ├── spec-pascalCase.js │ ├── spec-properCase.js │ ├── spec-removeNonASCII.js │ ├── spec-removeNonWord.js │ ├── spec-repeat.js │ ├── spec-replaceAccents.js │ ├── spec-rpad.js │ ├── spec-rtrim.js │ ├── spec-sentenceCase.js │ ├── spec-slugify.js │ ├── spec-startsWith.js │ ├── spec-stripHtmlTags.js │ ├── spec-trim.js │ ├── spec-truncate.js │ ├── spec-typecast.js │ ├── spec-unCamelCase.js │ ├── spec-underscore.js │ ├── spec-unescapeHtml.js │ ├── spec-unescapeUnicode.js │ ├── spec-unhyphenate.js │ └── spec-upperCase.js │ └── time │ ├── spec-now.js │ ├── spec-parseMs.js │ └── spec-toTimeString.js └── updateDocs.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .tmp* 2 | .project 3 | .settings/ 4 | .livereload 5 | 6 | .DS_Store? 7 | ehthumbs.db 8 | Icon? 9 | Thumbs.db 10 | 11 | 12 | # ---- 13 | 14 | # we also ignore node_modules 15 | node_modules/ 16 | 17 | # we ignore coverage reports since they change at each build 18 | coverage/ 19 | 20 | 21 | # ---- 22 | 23 | 24 | # ignore files added by `npm install` 25 | 26 | /array.js 27 | /array/ 28 | /collection.js 29 | /collection/ 30 | /financial.js 31 | /financial/ 32 | /function.js 33 | /function/ 34 | /index.js 35 | /lang.js 36 | /lang/ 37 | /math.js 38 | /math/ 39 | /number.js 40 | /number/ 41 | /object.js 42 | /object/ 43 | /queryString.js 44 | /queryString/ 45 | /random.js 46 | /random/ 47 | /string.js 48 | /string/ 49 | /time.js 50 | /time/ 51 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # dumb files 2 | # ========== 3 | 4 | .tmp* 5 | .project 6 | .settings/ 7 | .livereload 8 | .DS_Store? 9 | ehthumbs.db 10 | Icon? 11 | Thumbs.db 12 | 13 | 14 | # stuff not needed by node 15 | # ======================== 16 | 17 | node_modules/ 18 | tests/ 19 | _build/ 20 | doc/html/ 21 | 22 | # we keep the doc/mdown/ folder in case npm decides to display it in the future 23 | # also good in case user is using an old version or working offline 24 | 25 | # we also keep the src/ folder in case the user still needs the AMD modules 26 | # after build (see issue #102) 27 | 28 | component.json 29 | updateDocs.sh 30 | clean.sh 31 | build.js 32 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | script: 5 | - "npm test --coverage" 6 | - "node node_modules/.bin/istanbul check-coverage --functions 90 --statements 90 --branches 90 --lines 90" 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # This repository is moving away! 2 | 3 | development will be continued at https://github.com/mout/mout 4 | 5 | for info about how to upgrade legacy projects see: https://github.com/mout/mout/wiki/Migrating-old-projects-from-amd-utils 6 | 7 | it will be better for the future of the project! See [issue #112](https://github.com/millermedeiros/amd-utils/issues/112) to understand the reasons. 8 | -------------------------------------------------------------------------------- /_build/config.js: -------------------------------------------------------------------------------- 1 | 2 | exports.ENCODING = 'utf-8'; 3 | exports.SRC_FOLDER = 'src'; 4 | exports.SPEC_FOLDER = 'tests/spec'; 5 | exports.TEMPLATES_FOLDER = '_build/templates'; 6 | exports.SPEC_RUNNER_PATH = 'tests/runner.js'; 7 | 8 | -------------------------------------------------------------------------------- /_build/doc_template/assets_/js/lib/syntax-highlighter/shBrushPlain.js: -------------------------------------------------------------------------------- 1 | /** 2 | * SyntaxHighlighter 3 | * http://alexgorbatchev.com/SyntaxHighlighter 4 | * 5 | * SyntaxHighlighter is donationware. If you are using it, please donate. 6 | * http://alexgorbatchev.com/SyntaxHighlighter/donate.html 7 | * 8 | * @version 9 | * 3.0.83 (July 02 2010) 10 | * 11 | * @copyright 12 | * Copyright (C) 2004-2010 Alex Gorbatchev. 13 | * 14 | * @license 15 | * Dual licensed under the MIT and GPL licenses. 16 | */ 17 | ;(function() 18 | { 19 | // CommonJS 20 | SyntaxHighlighter = SyntaxHighlighter || (typeof require !== 'undefined'? require('shCore').SyntaxHighlighter : null); 21 | 22 | function Brush() 23 | { 24 | }; 25 | 26 | Brush.prototype = new SyntaxHighlighter.Highlighter(); 27 | Brush.aliases = ['text', 'plain']; 28 | 29 | SyntaxHighlighter.brushes.Plain = Brush; 30 | 31 | // CommonJS 32 | typeof(exports) != 'undefined' ? exports.Brush = Brush : null; 33 | })(); 34 | -------------------------------------------------------------------------------- /_build/doc_template/doc.hbs: -------------------------------------------------------------------------------- 1 | {{> header}} 2 |
7 | {{{content}}} 8 | {{> footer}} 9 | -------------------------------------------------------------------------------- /_build/doc_template/footer.hbs: -------------------------------------------------------------------------------- 1 |