4.14.2 • Published 12 months ago

elven-code v4.14.2

Weekly downloads
5
License
MIT
Repository
github
Last release
12 months ago

Elven Code

These are utility functions that Charlie commonly uses or that he shares with his students.

Usage

import { elfUtils, elfStrings, elfFiles } from 'elven-code';
const { elfUtils, elfStrings, elfFiles } = require('elven-code');
const key = elfStrings.getEndFromCharacter(dir, '/');
const content = elfFiles.readFile(fileName);
console.log(key, content);

Notes

Meant to be used on the server side. Webpack and create-react-app will complain If you target the client. For a solution, see: https://stackoverflow.com/q/64557638/253576.

Install:

npm i elven-code

Testing

To test all the files requires some setup and can best be done on Charlie's machines. In particular, you need:

  • ElvenConfig.json in ~/.config

To install the Git Repository called test-dummy:

To run all the tests requires setup:

npm test

To run some utils might work without setup:

  • npm run test-files
  • npm run test-strings

The config file might look like this:

{
    "calvert": {
        "base-dir": "/home/charlie/",
        "site-dirs": [
          "Documents/AllTest",
          "Git/CloudNotes/Assignments",
          "Git/CloudNotes/Prog270",
          "Git/CloudNotes/Isit322"
        ]
    }
}

https://www.elvenware.com/teach/assignments/NpmPublishing.html

4.14.1

12 months ago

4.14.2

12 months ago

4.14.0

12 months ago

4.13.9

12 months ago

4.13.6

1 year ago

4.13.7

1 year ago

4.13.8

1 year ago

4.13.2

1 year ago

4.13.3

1 year ago

4.13.4

1 year ago

4.13.5

1 year ago

4.13.0

1 year ago

4.13.1

1 year ago

4.12.0

2 years ago

4.12.1

2 years ago

4.11.0

2 years ago

4.11.1

2 years ago

4.11.2

2 years ago

4.11.3

2 years ago

4.9.0

2 years ago

4.10.0

2 years ago

4.8.1

2 years ago

4.8.0

2 years ago

4.7.1

3 years ago

4.7.0

5 years ago

4.6.3

5 years ago

4.6.2

5 years ago

4.6.1

5 years ago

4.6.0

5 years ago

4.5.0

6 years ago

4.4.1

6 years ago

4.4.0

6 years ago

4.3.4

6 years ago

4.3.3

7 years ago

4.3.2

7 years ago

4.3.1

7 years ago

4.3.0

7 years ago

4.2.0

7 years ago

4.1.7

7 years ago

4.1.6

7 years ago

4.1.5

7 years ago

4.1.4

7 years ago

4.1.3

7 years ago

4.1.2

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.0

7 years ago

3.1.0

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.10.2

7 years ago

2.10.1

7 years ago

2.10.0

7 years ago

2.9.2

7 years ago

2.9.1

8 years ago

2.9.0

8 years ago

2.8.0

8 years ago

2.7.3

8 years ago

2.7.2

8 years ago

2.7.1

8 years ago

2.7.0

8 years ago

2.6.0

8 years ago

2.5.0

8 years ago

2.4.0

8 years ago

2.3.0

8 years ago

2.2.0

8 years ago

2.1.0

8 years ago

2.0.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.2

8 years ago

1.4.1

8 years ago

1.4.0

8 years ago

1.3.5

8 years ago

1.3.4

8 years ago

1.3.3

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

9 years ago