Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
@typedash/fs
Advanced tools
Wraps methods from fs-extra
to make them more compatible with the fp-ts
ecosystem.
npm install @typedash/fs
yard add --save @typedash/fs
Below is an example of how you would/could use this package in your project.
import path from 'path'
import { z } from 'zod'
import { fs } from '@typedash/fs'
import { R, TE, flow, pipe } from '@typedash/typedash'
import { R, TE, flow, pipe } from '../../utils'
import { VersionInfo } from './VersionInfo'
const PACKAGE_PATH = path.join(__dirname, '..', 'package.json')
const PackageJson = z.object({ name: z.string() })
pipe(
VERSION_INFO_PATH,
fs.readJson(),
TE.chain(TE.fromZodParse(PackageJson)),
TE.map(R.prop('name'))
TE.logTag('🔢 PackageJson Name'),
)
// TE.TaskEither<Error, string>
Package | Docs Url |
---|---|
fp-ts | https://gcanti.github.io/fp-ts/modules/ |
fs | https://github.com/jprichardson/node-fs-extra |
FAQs
`fp-ts` compliant `fs-extra` wrappers
The npm package @typedash/fs receives a total of 0 weekly downloads. As such, @typedash/fs popularity was classified as not popular.
We found that @typedash/fs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.