smartstring/ts/smartstring.plugins.ts

23 lines
591 B
TypeScript
Raw Normal View History

2020-12-31 04:42:46 +00:00
// node native
2023-08-18 11:12:25 +00:00
import * as smartenv from '@push.rocks/smartenv';
2020-12-31 03:56:40 +00:00
const smartenvInstance = new smartenv.Smartenv();
2023-08-18 11:12:25 +00:00
import * as isounique from '@push.rocks/isounique';
2020-12-31 04:42:46 +00:00
2022-03-18 21:52:38 +00:00
export { isounique };
2019-01-12 19:41:01 +00:00
2022-03-18 21:50:24 +00:00
import { Buffer } from 'buffer';
if (smartenvInstance.isBrowser) {
globalThis.Buffer = Buffer;
}
import * as url from 'url';
export { url };
2019-01-12 19:41:01 +00:00
// third party
2022-03-18 21:50:24 +00:00
import { Base64 as jsBase64 } from 'js-base64';
2017-10-05 13:55:59 +00:00
2022-03-18 21:50:24 +00:00
import stripIndent from 'strip-indent';
import normalizeNewline from 'normalize-newline';
import randomatic from 'randomatic';
2020-12-31 04:11:33 +00:00
2022-03-18 21:50:24 +00:00
export { jsBase64, stripIndent, normalizeNewline, randomatic };