index.js (5701B)
1 /** 2 * @license Apache-2.0 3 * 4 * Copyright (c) 2018 The Stdlib Authors. 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 'use strict'; 20 21 /* 22 * When adding modules to the namespace, ensure that they are added in alphabetical order according to module name. 23 */ 24 25 // MODULES // 26 27 var setReadOnly = require( '@stdlib/utils/define-read-only-property' ); 28 29 30 // MAIN // 31 32 /** 33 * Top-level namespace. 34 * 35 * @namespace regexp 36 */ 37 var regexp = {}; 38 39 /** 40 * @name reBasename 41 * @memberof regexp 42 * @readonly 43 * @type {Function} 44 * @see {@link module:@stdlib/regexp/basename} 45 */ 46 setReadOnly( regexp, 'reBasename', require( './../basename' ) ); 47 48 /** 49 * @name reBasenamePosix 50 * @memberof regexp 51 * @readonly 52 * @type {Function} 53 * @see {@link module:@stdlib/regexp/basename-posix} 54 */ 55 setReadOnly( regexp, 'reBasenamePosix', require( './../basename-posix' ) ); 56 57 /** 58 * @name reBasenameWindows 59 * @memberof regexp 60 * @readonly 61 * @type {Function} 62 * @see {@link module:@stdlib/regexp/basename-windows} 63 */ 64 setReadOnly( regexp, 'reBasenameWindows', require( './../basename-windows' ) ); 65 66 /** 67 * @name reColorHexadecimal 68 * @memberof regexp 69 * @readonly 70 * @type {Function} 71 * @see {@link module:@stdlib/regexp/color-hexadecimal} 72 */ 73 setReadOnly( regexp, 'reColorHexadecimal', require( './../color-hexadecimal' ) ); 74 75 /** 76 * @name reDecimalNumber 77 * @memberof regexp 78 * @readonly 79 * @type {Function} 80 * @see {@link module:@stdlib/regexp/decimal-number} 81 */ 82 setReadOnly( regexp, 'reDecimalNumber', require( './../decimal-number' ) ); 83 84 /** 85 * @name reDirname 86 * @memberof regexp 87 * @readonly 88 * @type {Function} 89 * @see {@link module:@stdlib/regexp/dirname} 90 */ 91 setReadOnly( regexp, 'reDirname', require( './../dirname' ) ); 92 93 /** 94 * @name reDirnamePosix 95 * @memberof regexp 96 * @readonly 97 * @type {Function} 98 * @see {@link module:@stdlib/regexp/dirname-posix} 99 */ 100 setReadOnly( regexp, 'reDirnamePosix', require( './../dirname-posix' ) ); 101 102 /** 103 * @name reDirnameWindows 104 * @memberof regexp 105 * @readonly 106 * @type {Function} 107 * @see {@link module:@stdlib/regexp/dirname-windows} 108 */ 109 setReadOnly( regexp, 'reDirnameWindows', require( './../dirname-windows' ) ); 110 111 /** 112 * @name reEOL 113 * @memberof regexp 114 * @readonly 115 * @type {Function} 116 * @see {@link module:@stdlib/regexp/eol} 117 */ 118 setReadOnly( regexp, 'reEOL', require( './../eol' ) ); 119 120 /** 121 * @name reExtendedLengthPath 122 * @memberof regexp 123 * @readonly 124 * @type {Function} 125 * @see {@link module:@stdlib/regexp/extended-length-path} 126 */ 127 setReadOnly( regexp, 'reExtendedLengthPath', require( './../extended-length-path' ) ); 128 129 /** 130 * @name reExtname 131 * @memberof regexp 132 * @readonly 133 * @type {Function} 134 * @see {@link module:@stdlib/regexp/extname} 135 */ 136 setReadOnly( regexp, 'reExtname', require( './../extname' ) ); 137 138 /** 139 * @name reExtnamePosix 140 * @memberof regexp 141 * @readonly 142 * @type {Function} 143 * @see {@link module:@stdlib/regexp/extname-posix} 144 */ 145 setReadOnly( regexp, 'reExtnamePosix', require( './../extname-posix' ) ); 146 147 /** 148 * @name reExtnameWindows 149 * @memberof regexp 150 * @readonly 151 * @type {Function} 152 * @see {@link module:@stdlib/regexp/extname-windows} 153 */ 154 setReadOnly( regexp, 'reExtnameWindows', require( './../extname-windows' ) ); 155 156 /** 157 * @name reFilename 158 * @memberof regexp 159 * @readonly 160 * @type {Function} 161 * @see {@link module:@stdlib/regexp/filename} 162 */ 163 setReadOnly( regexp, 'reFilename', require( './../filename' ) ); 164 165 /** 166 * @name reFilenamePosix 167 * @memberof regexp 168 * @readonly 169 * @type {Function} 170 * @see {@link module:@stdlib/regexp/filename-posix} 171 */ 172 setReadOnly( regexp, 'reFilenamePosix', require( './../filename-posix' ) ); 173 174 /** 175 * @name reFilenameWindows 176 * @memberof regexp 177 * @readonly 178 * @type {Function} 179 * @see {@link module:@stdlib/regexp/filename-windows} 180 */ 181 setReadOnly( regexp, 'reFilenameWindows', require( './../filename-windows' ) ); 182 183 /** 184 * @name reFunctionName 185 * @memberof regexp 186 * @readonly 187 * @type {Function} 188 * @see {@link module:@stdlib/regexp/function-name} 189 */ 190 setReadOnly( regexp, 'reFunctionName', require( './../function-name' ) ); 191 192 /** 193 * @name reNativeFunction 194 * @memberof regexp 195 * @readonly 196 * @type {Function} 197 * @see {@link module:@stdlib/regexp/native-function} 198 */ 199 setReadOnly( regexp, 'reNativeFunction', require( './../native-function' ) ); 200 201 /** 202 * @name reRegExp 203 * @memberof regexp 204 * @readonly 205 * @type {Function} 206 * @see {@link module:@stdlib/regexp/regexp} 207 */ 208 setReadOnly( regexp, 'reRegExp', require( './../regexp' ) ); 209 210 /** 211 * @name reUncPath 212 * @memberof regexp 213 * @readonly 214 * @type {Function} 215 * @see {@link module:@stdlib/regexp/unc-path} 216 */ 217 setReadOnly( regexp, 'reUncPath', require( './../unc-path' ) ); 218 219 /** 220 * @name reUtf16SurrogatePair 221 * @memberof regexp 222 * @readonly 223 * @type {Function} 224 * @see {@link module:@stdlib/regexp/utf16-surrogate-pair} 225 */ 226 setReadOnly( regexp, 'reUtf16SurrogatePair', require( './../utf16-surrogate-pair' ) ); 227 228 /** 229 * @name reUtf16UnpairedSurrogate 230 * @memberof regexp 231 * @readonly 232 * @type {Function} 233 * @see {@link module:@stdlib/regexp/utf16-unpaired-surrogate} 234 */ 235 setReadOnly( regexp, 'reUtf16UnpairedSurrogate', require( './../utf16-unpaired-surrogate' ) ); 236 237 /** 238 * @name reWhitespace 239 * @memberof regexp 240 * @readonly 241 * @type {Function} 242 * @see {@link module:@stdlib/regexp/whitespace} 243 */ 244 setReadOnly( regexp, 'reWhitespace', require( './../whitespace' ) ); 245 246 247 // EXPORTS // 248 249 module.exports = regexp;