Skip to content

Commit

Permalink
🐛 chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfram77 committed Apr 12, 2023
1 parent e488cee commit fc94354
Show file tree
Hide file tree
Showing 5 changed files with 213 additions and 916 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
tags:
- '!*' # Do not execute on tags
env:
NAME: ${{vars.NAME}}
EMAIL: ${{vars.EMAIL}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GH_TOKEN}}
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
FORCE_COLOR: 1
Expand Down Expand Up @@ -55,8 +58,7 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18.x
- run: git clone https://${GITHUB_TOKEN}@github.com/nodef/deploy "$HOME/deploy"
- run: bash "$HOME/deploy/setup.sh"
- uses: nodef/[email protected]
- run: npm i -g typescript typedoc
- run: npm ci
- run: npm run publish-docs
Expand All @@ -71,8 +73,9 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: 18.x
- run: git clone https://${GITHUB_TOKEN}@github.com/nodef/deploy "$HOME/deploy"
- run: bash "$HOME/deploy/setup.sh"
- uses: nodef/[email protected]
with:
entries: access = public
- run: npm i -g typescript rollup typedoc browserify terser
- run: npm ci
- run: npm run publish-packages
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
BSD 3-Clause License

Copyright (c) 2019-22, Subhajit Sahu
Copyright (c) 2019-23, Subhajit Sahu
All rights reserved.

Redistribution and use in source and binary forms, with or without
Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ included in [extra-child-process] package.
<br>

```javascript
const fs = require('extra-fs');
const xfs = require('extra-fs');


// 1. Read file text.
async function example1() {
var text = fs.readFileTextSync('.npmignore');
var text = await fs.readFileText('.npmignore');
var text = xfs.readFileTextSync('.npmignore');
var text = await xfs.readFileText('.npmignore');
// → # Source only
// → .gitmodules
// → .github/
Expand All @@ -98,8 +98,8 @@ example1();

// 2. Read JSON file.
async function example2() {
var json = fs.readJsonSync('package.json');
var json = await fs.readJson('package.json');
var json = xfs.readJsonSync('package.json');
var json = await xfs.readJson('package.json');
// → {
// → name: 'extra-fs',
// → version: '3.0.27',
Expand All @@ -112,16 +112,16 @@ example2();

// 3. Assert that a file exists.
async function example3() {
if (!(await fs.exists('LICENSE'))) throw 'May I see you license sir?';
await fs.assertExists('LICENSE');
if (!(await xfs.exists('LICENSE'))) throw 'May I see you license sir?';
await xfs.assertExists('LICENSE');
}
example3();


// 4. Get contents of a directory.
async function example4() {
var contents = fs.readdirSync('src');
var contents = await fs.readdir('src');
var contents = xfs.readdirSync('src');
var contents = await xfs.readdir('src');
// → [ 'index.ts' ]
}
example4();
Expand Down
Loading

0 comments on commit fc94354

Please sign in to comment.