
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
firescript-firefs
Advanced tools
File System lib for Firescript
import FireFS from 'firescript-firefs'
const fs = await FireFS.path('/foo/bar/blub')
if (fs.exists) {
console.log('File exists')
}
import FireFS from 'firescript-firefs'
const content = await FireFS.pathExists('/foo/bar/blub')
import FireFS from 'firescript-firefs'
const fs = await FireFS.file('/foo/bar/blub')
const content = await fs.read()
import FireFS from 'firescript-firefs'
const content = await FireFS.readFile('/foo/bar/blub')
import FireFS from 'firescript-firefs'
const fs = await FireFS.file('/foo/bar/blub')
await fs.write('Content')
import FireFS from 'firescript-firefs'
const fs = await FireFS.writeFile('/foo/bar/blub', 'Content')
import FireFS from 'firescript-firefs'
const fs = await FireFS.file('/foo/bar/blub.json')
const json = await fs.readJSON()
import FireFS from 'firescript-firefs'
const json = await FireFS.readJSON('/foo/bar/blub.json')
import FireFS from 'firescript-firefs'
const fs = await FireFS.file('/foo/bar/blub')
await fs.writeJSON('Content')
import FireFS from 'firescript-firefs'
const fs = await FireFS.writeJSON('/foo/bar/blub', 'Content')
returns bool true if path exists, otherwise false
import FireFS from 'firescript-firefs'
const exists = await FireFS.pathExists('/foo/bar/blub')
import FireFS from 'firescript-firefs'
const fs = await FireFS.dir('/foo/bar/blub')
const content = await fs.list()
import FireFS from 'firescript-firefs'
const content = await FireFS.readDir('/foo/bar/blub')
import FireFS from 'firescript-firefs'
const fs = await FireFS.file('/foo/bar/blub/foo.txt')
const content = await fs.watch((fl) => {
console.log(`File ${fl.name} changed`)
})
import FireFS from 'firescript-firefs'
const fs = await FireFS.dir('/foo/bar/blub/')
const content = await fs.watch((fl) => {
console.log(`File ${fl.name} changed`)
})
FAQs
File System lib for Firescript
We found that firescript-firefs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.