Skip to content

Commit 35a1b08

Browse files
committed
Auto-generated commit
1 parent 1aa1bb3 commit 35a1b08

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,19 @@ limitations under the License.
4141

4242
## Usage
4343

44+
```javascript
45+
import writeFile from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@deno/mod.js';
46+
```
47+
The previous example will load the latest bundled code from the deno branch. Alternatively, you may load a specific version by loading the file from one of the [tagged bundles](https://github.com/stdlib-js/fs-write-file/tags). For example,
48+
4449
```javascript
4550
import writeFile from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@v0.2.0-deno/mod.js';
4651
```
4752

4853
You can also import the following named exports from the package:
4954

5055
```javascript
51-
import { sync } from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@v0.2.0-deno/mod.js';
56+
import { sync } from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@deno/mod.js';
5257
```
5358

5459
#### writeFile( file, data\[, options], clbk )
@@ -131,7 +136,7 @@ The function accepts the same `options` and has the same defaults as [`fs.writeF
131136
<!-- run-disable -->
132137

133138
```javascript
134-
import writeFile from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@v0.2.0-deno/mod.js';
139+
import writeFile from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@deno/mod.js';
135140
136141
// Explicitly handle the error...
137142
var err = writeFile.sync( '/path/to/file.txt', 'beep boop\n' );
@@ -153,7 +158,7 @@ The function accepts the same `options` and has the same defaults as [`fs.writeF
153158

154159
```javascript
155160
var join = require( 'path' ).join;
156-
import writeFile from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@v0.2.0-deno/mod.js';
161+
import writeFile from 'https://cdn.jsdelivr.net/gh/stdlib-js/fs-write-file@deno/mod.js';
157162
158163
var fpath = join( __dirname, 'examples', 'fixtures', 'file.txt' );
159164

0 commit comments

Comments
 (0)