diff --git a/node/path/posix.ts b/node/path/posix.ts new file mode 100644 index 000000000000..70f79b992baa --- /dev/null +++ b/node/path/posix.ts @@ -0,0 +1,38 @@ +import { posix } from "../path.ts"; + +export const { + resolve, + normalize, + isAbsolute, + join, + relative, + // _makeLong, + dirname, + basename, + extname, + format, + parse, + sep, + delimiter, + // win32 +} = posix; + +export { posix }; + +export default { + resolve, + normalize, + isAbsolute, + join, + relative, + // _makeLong, + dirname, + basename, + extname, + format, + parse, + sep, + delimiter, + posix, + // win32 +}; diff --git a/node/path/win32.ts b/node/path/win32.ts new file mode 100644 index 000000000000..32b7f200b7dd --- /dev/null +++ b/node/path/win32.ts @@ -0,0 +1,38 @@ +import { win32 } from "../path.ts"; + +export const { + resolve, + normalize, + isAbsolute, + join, + relative, + // _makeLong, + dirname, + basename, + extname, + format, + parse, + sep, + delimiter, + // posix +} = win32; + +export { win32 }; + +export default { + resolve, + normalize, + isAbsolute, + join, + relative, + // _makeLong, + dirname, + basename, + extname, + format, + parse, + sep, + delimiter, + // posix, + win32, +}; diff --git a/node/stream/promises.ts b/node/stream/promises.ts new file mode 100644 index 000000000000..6f4bdb25de28 --- /dev/null +++ b/node/stream/promises.ts @@ -0,0 +1,4 @@ +import { promises } from "../stream.ts"; + +export const { finished, pipeline } = promises; +export default promises; diff --git a/node/timers/promises.ts b/node/timers/promises.ts new file mode 100644 index 000000000000..bca492c0557d --- /dev/null +++ b/node/timers/promises.ts @@ -0,0 +1,12 @@ +import { promisify } from "../util.ts"; +import timers from "../timers.ts"; + +export const setTimeout = promisify(timers.setTimeout), + setImmediate = promisify(timers.setImmediate), + setInterval = promisify(timers.setInterval); + +export default { + setTimeout, + setImmediate, + setInterval, +}; diff --git a/node/util/types.ts b/node/util/types.ts new file mode 100644 index 000000000000..607add86ce05 --- /dev/null +++ b/node/util/types.ts @@ -0,0 +1,47 @@ +import { types } from "../types.ts"; +export { types as default } from "../types.ts"; + +export const { + // isExternal, + isDate, + isArgumentsObject, + isBigIntObject, + isBooleanObject, + isNumberObject, + isStringObject, + isSymbolObject, + isNativeError, + isRegExp, + isAsyncFunction, + isGeneratorFunction, + isGeneratorObject, + isPromise, + isMap, + isSet, + isMapIterator, + isSetIterator, + isWeakMap, + isWeakSet, + isArrayBuffer, + isDataView, + isSharedArrayBuffer, + // isProxy, + isModuleNamespaceObject, + isAnyArrayBuffer, + isBoxedPrimitive, + isArrayBufferView, + isTypedArray, + isUint8Array, + isUint8ClampedArray, + isUint16Array, + isUint32Array, + isInt8Array, + isInt16Array, + isInt32Array, + isFloat32Array, + isFloat64Array, + isBigInt64Array, + isBigUint64Array, + // isKeyObject, + // isCryptoKey +} = types;