![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Read and write multiple files
npm install file-rw
Read an array of files. options.encoding
defaults to utf-8
.
files
- an array of filesoptions
- options for fs.readFile
. encoding
defaults to utf-8
callback
- a function which will be called with (err, [ file1Contents, file2Contents, ... ])
Write a file, creating any directories in its path that do not exist.
filePath
- path of the file to writecontents
- contents to write in fileoptions
- options for fs.writeFile
callback
- a function which will be called with (err, filePath)
Write a file, creating any directories in its path that do not exist.
filePairs
- an array of pairs [ filePath, contents ]
. e.g [ ['file1.txt', 'foo'], ['file2.txt', 'bar'] ]
options
- options for fs.writeFile
callback
- a function which will be called with (err, [ file1Path, file2Path, ... ])
var filerw = require('../index');
filerw.readFilesUtf8(['f1.txt', 'f2.txt'], function(err, result) {
// result[0] == f1Contents
// result[1] == f2Contents
});
filerw.mkWriteFile('a/b/c.txt', 'foo', function(err, result) {
// result == 'a/b/c.txt'
});
filerw.mkWriteFiles([[ 'a/b/c.txt', 'foo'], [ 'd/e.txt', 'bar' ]], function(err, result) {
// result[0] == 'a/b/c.txt'
// result[1] == 'd/e.txt'
});
FAQs
Read and write files more easily
The npm package file-rw receives a total of 566 weekly downloads. As such, file-rw popularity was classified as not popular.
We found that file-rw 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.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.