Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@cardstack/sftp
Advanced tools
SFTP data source that allows for reading files from and SFTP server. Currently only implements a searcher.
To use, add a data source to your app:
factory.addResource('data-sources', 'sftp')
.withAttributes({
'source-type': '@cardstack/sftp',
params: {
contentType: 'sftp-files',
connection: {
host: '1.2.3.4',
port: 22,
username: 'someuser',
privateKey: require('fs').readFileSync('/path/to/private/key')
}
}
});
Config is passed through to ssh2 so see there if you want different connection options.
What you pass to the contentType
option is the name of the content type that
is created. So if you pass sftp-files
, your files are accessible at
e.g. /api/sftp-files/foo.jpg
Normal grants are respected.
Use url encoding to access non-root-level files, e.g. if you want to access foo/bar.jpg
:
/api/sftp-files/foo%2fbar.jpg
ember install @cardstack/sftp
[Longer description of how to use the addon in apps.]
git clone <repository-url>
cd @cardstack/sftp
npm install
npm run lint:js
npm run lint:js -- --fix
ember test
– Runs the test suite on the current Ember versionember test --server
– Runs the test suite in "watch mode"npm test
– Runs ember try:each
to test your addon against multiple Ember versionsember serve
This project is licensed under the MIT License.
FAQs
The default blueprint for ember-cli addons.
The npm package @cardstack/sftp receives a total of 3 weekly downloads. As such, @cardstack/sftp popularity was classified as not popular.
We found that @cardstack/sftp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.