Skip to content

Commit fb2084c

Browse files
committed
Update namespace
1 parent 7776fe9 commit fb2084c

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

  • lib/node_modules/@stdlib

lib/node_modules/@stdlib/namespace/lib/namespace/u.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,16 @@ ns.push({
145145
]
146146
});
147147

148+
ns.push({
149+
'alias': 'umask',
150+
'path': '@stdlib/process/umask',
151+
'value': require( '@stdlib/process/umask' ),
152+
'type': 'Function',
153+
'related': [
154+
'@stdlib/process/chmod'
155+
]
156+
});
157+
148158
ns.push({
149159
'alias': 'uncapitalize',
150160
'path': '@stdlib/string/uncapitalize',

lib/node_modules/@stdlib/repl/code-blocks/lib/db.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ var db = {
13241324
"Uint8ClampedArray": "arr = new Uint8ClampedArray()\n",
13251325
"UINT8_MAX": "UINT8_MAX\n",
13261326
"UINT8_NUM_BYTES": "UINT8_NUM_BYTES\n",
1327+
"umask": "mask = umask()\nmask = umask( { 'symbolic': true } )\n",
13271328
"uncapitalize": "out = uncapitalize( 'Beep' )\nout = uncapitalize( 'bOOp' )\n",
13281329
"uncapitalizeKeys": "obj = { 'AA': 1, 'BB': 2 };\nout = uncapitalizeKeys( obj )\n",
13291330
"uncurry": "function addX( x ) {\n return function addY( y ) {\n return x + y;\n };\n};\nfcn = uncurry( addX );\nsum = fcn( 2, 3 )\n\n// To enforce a fixed number of parameters, provide an `arity` argument:\nfunction add( x ) {\n return function add( y ) {\n return x + y;\n };\n};\nfcn = uncurry( add, 2 );\nsum = fcn( 9 )\n\n// To specify an execution context, provide a `thisArg` argument:\nfunction addX( x ) {\n this.x = x;\n return addY;\n};\nfunction addY( y ) {\n return this.x + y;\n};\nfcn = uncurry( addX, {} );\nsum = fcn( 2, 3 )\n",

lib/node_modules/@stdlib/repl/help/lib/db.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1324,6 +1324,7 @@ var db = {
13241324
"Uint8ClampedArray": "\nUint8ClampedArray()\n A typed array constructor which returns a typed array representing an array\n of 8-bit unsigned integers in the platform byte order clamped to 0-255.\n\n Returns\n -------\n out: Uint8ClampedArray\n A typed array.\n\n Examples\n --------\n > var arr = new Uint8ClampedArray()\n <Uint8ClampedArray>\n\n\nUint8ClampedArray( length )\n Returns a typed array having a specified length.\n\n Parameters\n ----------\n length: integer\n Typed array length.\n\n Returns\n -------\n out: Uint8ClampedArray\n A typed array.\n\n Examples\n --------\n > var arr = new Uint8ClampedArray( 5 )\n <Uint8ClampedArray>[ 0, 0, 0, 0, 0 ]\n\n\nUint8ClampedArray( typedarray )\n Creates a typed array from another typed array.\n\n Parameters\n ----------\n typedarray: TypedArray\n Typed array from which to generate another typed array.\n\n Returns\n -------\n out: Uint8ClampedArray\n A typed array.\n\n Examples\n --------\n > var arr1 = new Int32Array( [ 5, 5, 5 ] );\n > var arr2 = new Uint8ClampedArray( arr1 )\n <Uint8ClampedArray>[ 5, 5, 5 ]\n\n\nUint8ClampedArray( obj )\n Creates a typed array from an array-like object or iterable.\n\n Parameters\n ----------\n obj: Object\n Array-like object or iterable from which to generate a typed array.\n\n Returns\n -------\n out: Uint8ClampedArray\n A typed array.\n\n Examples\n --------\n > var arr1 = [ 5.0, 5.0, 5.0 ];\n > var arr2 = new Uint8ClampedArray( arr1 )\n <Uint8ClampedArray>[ 5, 5, 5 ]\n\n\nUint8ClampedArray( buffer[, byteOffset[, length]] )\n Returns a typed array view of an ArrayBuffer.\n\n Parameters\n ----------\n buffer: ArrayBuffer\n Underlying ArrayBuffer.\n\n byteOffset: integer (optional)\n Integer byte offset specifying the location of the first typed array\n element. Default: 0.\n\n length: integer (optional)\n View length. If not provided, the view spans from the byteOffset to\n the end of the underlying ArrayBuffer.\n\n Returns\n -------\n out: Uint8ClampedArray\n A typed array.\n\n Examples\n --------\n > var buf = new ArrayBuffer( 4 );\n > var arr = new Uint8ClampedArray( buf, 0, 4 )\n <Uint8ClampedArray>[ 0, 0, 0, 0 ]\n\n\nUint8ClampedArray.BYTES_PER_ELEMENT\n Number of bytes per view element.\n\n Examples\n --------\n > Uint8ClampedArray.BYTES_PER_ELEMENT\n 1\n\n\nUint8ClampedArray.name\n Typed array constructor name.\n\n Examples\n --------\n > Uint8ClampedArray.name\n Uint8ClampedArray\n\n\nUint8ClampedArray.prototype.buffer\n Read-only property which returns the ArrayBuffer referenced by the typed\n array.\n\n Examples\n --------\n > var arr = new Uint8ClampedArray( 5 );\n > arr.buffer\n <ArrayBuffer>\n\n\nUint8ClampedArray.prototype.byteLength\n Read-only property which returns the length (in bytes) of the typed array.\n\n Examples\n --------\n > var arr = new Uint8ClampedArray( 5 );\n > arr.byteLength\n 5\n\n\nUint8ClampedArray.prototype.byteOffset\n Read-only property which returns the offset (in bytes) of the typed array\n from the start of its ArrayBuffer.\n\n Examples\n --------\n > var arr = new Uint8ClampedArray( 5 );\n > arr.byteOffset\n 0\n\n\nUint8ClampedArray.prototype.length\n Read-only property which returns the number of view elements.\n\n Examples\n --------\n > var arr = new Uint8ClampedArray( 5 );\n > arr.length\n 5\n\n\nTODO: add methods\n\n\n See Also\n --------\n ArrayBuffer, Float32Array, Float64Array, Int16Array, Int32Array, Int8Array, Uint16Array, Uint32Array, Uint8Array\n",
13251325
"UINT8_MAX": "\nUINT8_MAX\n Maximum unsigned 8-bit integer.\n\n The maximum unsigned 8-bit integer is given by `2^8 - 1`.\n\n Examples\n --------\n > UINT8_MAX\n 255\n\n See Also\n --------\n INT8_MAX\n",
13261326
"UINT8_NUM_BYTES": "\nUINT8_NUM_BYTES\n Size (in bytes) of an 8-bit unsigned integer.\n\n Examples\n --------\n > UINT8_NUM_BYTES\n 1\n\n See Also\n --------\n INT8_NUM_BYTES, UINT16_NUM_BYTES, UINT32_NUM_BYTES\n",
1327+
"umask": "\numask( [mask,] [options] )\n Returns the current process mask, if not provided a mask; otherwise, sets\n the process mask and returns the previous mask.\n\n A mask is a set of bits, each of which restricts how its corresponding\n permission is set for newly created files.\n\n On POSIX platforms, each file has a set of attributes that control who can\n read, write, or execute that file. Upon creating a file, file permissions\n must be set to an initial setting. The process mask restricts those\n permission settings.\n\n If the mask contains a bit set to \"1\", the corresponding initial file\n permission is disabled. If the mask contains a bit set to \"0\", the\n corresponding permission is left to be determined by the requesting process\n and the system.\n\n The process mask is thus a filter that removes permissions as a file is\n created; i.e., each bit set to a \"1\" removes its corresponding permission.\n\n In octal representation, a mask is a four digit number, e.g., 0077,\n comprised as follows:\n\n - 0: special permissions (setuid, setgid, sticky bit)\n - 0: (u)ser/owner permissions\n - 7: (g)roup permissions\n - 7: (o)thers/non-group permissions\n\n Octal codes correspond to the following permissions:\n\n - 0: read, write, execute\n - 1: read, write\n - 2: read, execute\n - 3: read\n - 4: write, execute\n - 5: write\n - 6: execute\n - 7: no permissions\n\n If provided fewer than four digits, the mask is left-padded with zeros.\n\n Note, however, that only the last three digits (i.e., the file permissions\n digits) of the mask are actually used when the mask is applied.\n\n Permissions can be represented using the following symbolic form:\n\n u=rwx,g=rwx,o=rwx\n\n where\n\n - u: user permissions\n - g: group permissions\n - o: other/non-group permissions\n - r: read\n - w: write\n - x: execute\n\n When setting permissions using symbolic notation, the function accepts a\n mask expression of the form:\n\n [<classes>]<operator><symbols>\n\n where \"classes\" may be a combination of\n\n - u: user\n - g: group\n - o: other/non-group\n - a: all\n\n \"symbols\" may be a combination of\n\n - r: read\n - w: write\n - x: execute\n - X: special execute\n - s: setuid/gid on execution\n - t: sticky\n\n and \"operator\" may be one of\n\n - `+`: enable\n - `-`: disable\n - `=`: enable specified and disable unspecified permissions\n\n For example,\n\n - `u-w`: disable user write permissions\n - `u+w`: enable user write permissions\n - `u=w`: enable user write permissions and disable user read and execute\n\n To specify multiple changes, provide a comma-separated list of mask\n expressions. For example,\n\n u+rwx,g-x,o=r\n\n would enable user read, write, and execute permissions, disable group\n execute permissions, enable other read permissions, and disable other\n write and execute permissions.\n\n The `a` class indicates \"all\", which is the same as specifying \"ugo\". This\n is the default class if a class is omitted when specifying permissions. For\n example, `+x` is equivalent to `a+x` which is equivalent to `ugo+x` which\n is equivalent to `u+x,g+x,o+x` and enables execution for all classes.\n\n Parameters\n ----------\n mask: integer|string (optional)\n Mask or mask expression. If the mask is a string, the mask is assumed to\n be in symbolic notation.\n\n options: Object (optional)\n Options.\n\n options.symbolic: boolean (optional)\n Boolean indicating whether to return the mask using symbolic notation.\n\n Returns\n -------\n mask: integer|string\n Process mask. If provided a mask, the returned value is the previous\n mask; otherwise, the returned value is the current process mask.\n\n Examples\n --------\n > var mask = umask()\n <number>\n > mask = umask( { 'symbolic': true } )\n <string>\n\n",
13271328
"uncapitalize": "\nuncapitalize( str )\n Lowercases the first character of a `string`.\n\n Parameters\n ----------\n str: string\n Input string.\n\n Returns\n -------\n out: string\n Uncapitalized string.\n\n Examples\n --------\n > var out = uncapitalize( 'Beep' )\n 'beep'\n > out = uncapitalize( 'bOOp' )\n 'bOOp'\n\n See Also\n --------\n capitalize, lowercase\n",
13281329
"uncapitalizeKeys": "\nuncapitalizeKeys( obj )\n Converts the first letter of each object key to lowercase.\n\n The function only transforms own properties. Hence, the function does not\n transform inherited properties.\n\n The function shallow copies key values.\n\n Parameters\n ----------\n obj: Object\n Source object.\n\n Returns\n -------\n out: Object\n New object.\n\n Examples\n --------\n > var obj = { 'AA': 1, 'BB': 2 };\n > var out = uncapitalizeKeys( obj )\n { 'aA': 1, 'bB': 2 }\n\n See Also\n --------\n capitalizeKeys, lowercaseKeys\n",
13291330
"uncurry": "\nuncurry( fcn[, arity, ][thisArg] )\n Transforms a curried function into a function invoked with multiple\n arguments.\n\n Parameters\n ----------\n fcn: Function\n Curried function.\n\n arity: integer (optional)\n Number of parameters.\n\n thisArg: any (optional)\n Evaluation context.\n\n Returns\n -------\n out: Function\n Uncurried function.\n\n Examples\n --------\n > function addX( x ) {\n ... return function addY( y ) {\n ... return x + y;\n ... };\n ... };\n > var fcn = uncurry( addX );\n > var sum = fcn( 2, 3 )\n 5\n\n // To enforce a fixed number of parameters, provide an `arity` argument:\n > function add( x ) {\n ... return function add( y ) {\n ... return x + y;\n ... };\n ... };\n > fcn = uncurry( add, 2 );\n > sum = fcn( 9 )\n <Error>\n\n // To specify an execution context, provide a `thisArg` argument:\n > function addX( x ) {\n ... this.x = x;\n ... return addY;\n ... };\n > function addY( y ) {\n ... return this.x + y;\n ... };\n > fcn = uncurry( addX, {} );\n > sum = fcn( 2, 3 )\n 5\n\n See Also\n --------\n curry, uncurryRight\n",

0 commit comments

Comments
 (0)