Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kubb/fs

Package Overview
Dependencies
Maintainers
0
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kubb/fs - npm Package Compare versions

Comparing version 3.0.0-alpha.10 to 3.0.0-alpha.11

dist/chunk-WWTFGLQE.cjs

34

dist/index.js

@@ -0,11 +1,9 @@

import fs3 from 'fs-extra';
import { resolve, relative } from 'node:path';
import { switcher } from 'js-runtime';
// src/clean.ts
import fs from "fs-extra";
async function clean(path) {
return fs.remove(path);
return fs3.remove(path);
}
// src/read.ts
import { relative } from "node:path";
import fs2 from "fs-extra";
import { switcher } from "js-runtime";
function slash(path, platform = "linux") {

@@ -32,3 +30,3 @@ const isWindowsPath = /^\\\\\?\\/.test(path);

node: async (path) => {
return fs2.readFile(path, { encoding: "utf8" });
return fs3.readFile(path, { encoding: "utf8" });
},

@@ -45,3 +43,3 @@ bun: async (path) => {

node: (path) => {
return fs2.readFileSync(path, { encoding: "utf8" });
return fs3.readFileSync(path, { encoding: "utf8" });
},

@@ -60,8 +58,3 @@ bun: () => {

}
// src/write.ts
import { resolve } from "node:path";
import fs3 from "fs-extra";
import { switcher as switcher2 } from "js-runtime";
var writer = switcher2(
var writer = switcher(
{

@@ -134,10 +127,5 @@ node: async (path, data, { sanity }) => {

}
export {
clean,
getRelativePath,
read,
readSync,
trimExtName,
write
};
export { clean, getRelativePath, read, readSync, trimExtName, write };
//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map

@@ -0,1 +1,3 @@

//# sourceMappingURL=types.js.map
//# sourceMappingURL=types.js.map
{
"name": "@kubb/fs",
"version": "3.0.0-alpha.10",
"version": "3.0.0-alpha.11",
"description": "FileSystem helpers",

@@ -56,5 +56,5 @@ "keywords": [

"tsup": "^8.2.4",
"@kubb/config-biome": "3.0.0-alpha.10",
"@kubb/config-ts": "3.0.0-alpha.10",
"@kubb/config-tsup": "3.0.0-alpha.10"
"@kubb/config-biome": "3.0.0-alpha.11",
"@kubb/config-ts": "3.0.0-alpha.11",
"@kubb/config-tsup": "3.0.0-alpha.11"
},

@@ -61,0 +61,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc