Package Exports
- temp-suffix
- temp-suffix/dist/cjs/index.cjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (temp-suffix) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
temp-suffix
Adds a unique suffix to a string with process and thread uniqueness guarantees. Adapted from https://github.com/npm/write-file-atomic
var tempSuffix = require(temp-suffix');
var assert = require(assert');
var tempFilename = tempSuffix(__filename);
console.log(tempFilename); // __filename + '-' + [UNIQUE SUFFIX]
var suffix = tempSuffix();
console.log(suffix); // [UNIQUE SUFFIX]