{"id":13454416,"url":"https://github.com/kevva/lnfs","last_synced_at":"2025-03-21T00:30:55.571Z","repository":{"id":21844726,"uuid":"25167910","full_name":"kevva/lnfs","owner":"kevva","description":"Safely force create symlinks","archived":false,"fork":false,"pushed_at":"2017-07-23T22:56:03.000Z","size":16,"stargazers_count":14,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-01T01:13:07.213Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kevva.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-13T16:48:41.000Z","updated_at":"2024-04-05T19:05:50.000Z","dependencies_parsed_at":"2022-08-20T00:01:01.283Z","dependency_job_id":null,"html_url":"https://github.com/kevva/lnfs","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Flnfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Flnfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Flnfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kevva%2Flnfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kevva","download_url":"https://codeload.github.com/kevva/lnfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244094262,"owners_count":20397020,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T08:00:53.877Z","updated_at":"2025-03-21T00:30:55.245Z","avatar_url":"https://github.com/kevva.png","language":"JavaScript","readme":"# lnfs [![Build Status](http://img.shields.io/travis/kevva/lnfs.svg?style=flat)](https://travis-ci.org/kevva/lnfs)\n\n\u003e Safely force create symlinks\n\n\n## Install\n\n```\n$ npm install lnfs\n```\n\n\n## Usage\n\n```js\nconst lnfs = require('lnfs');\n\nlnfs('foo.txt', 'bar.txt').then(() =\u003e {\n\tconsole.log('Symlink successfully created!');\n});\n```\n\n\n## API\n\n### lnfs(src, dest, [type])\n\nReturns a `Promise` with the path to the symlink.\n\n#### src\n\nType: `string`\n\nPath to source file.\n\n#### dest\n\nType: `string`\n\nPath to destination.\n\n#### type\n\nType: `string`\u003cbr\u003e\nDefault: `file`\n\nCan be set to `dir`, `file`, or `junction` and is only available on Windows (ignored on other platforms).\n\n\n## Related\n\n* [lnfs-cli](https://github.com/kevva/lnfs-cli) - CLI for this module\n\n\n## License\n\nMIT © [Kevin Mårtensson](https://github.com/kevva)\n","funding_links":[],"categories":["Packages","Repository","包","目录","Filesystem"],"sub_categories":["Filesystem","文件系统"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Flnfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkevva%2Flnfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkevva%2Flnfs/lists"}