Installations
npm install lib
Releases
Unable to fetch releases
Developer
stdlib
Developer Guide
Module System
CommonJS
Min. Node Version
>=4.0.0
Typescript Support
No
Node Version
20.6.1
NPM Version
9.8.1
Statistics
67 Stars
86 Commits
18 Forks
7 Watching
2 Branches
3 Contributors
Updated on 26 Sept 2023
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
6,493,394
Last day
-14.5%
8,053
Compared to previous day
Last week
-29.9%
72,906
Compared to previous week
Last month
-23.8%
568,964
Compared to previous month
Last year
2,683,020.7%
6,493,152
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
No dependencies detected.
Autocode standard library Node.js bindings
Basic Node bindings for Autocode standard library service accession (Node 4+).
Used to interface with services built using Autocode and the Autocode CLI.
The lib
package is available on npm: lib and
operates as zero-dependency interface to run Autocode standard library APIs and
web services. This means that you can utilize any service on Autocode without
installing any additional dependencies, and when you've deployed services to Autocode,
you have a pre-built Node.js SDK --- for example;
Callback Style
1const lib = require('lib'); 2lib.yourUsername.hostStatus({name: 'Dolores Abernathy'}, (err, result) => { 3 4 // handle result 5 6});
Promise Style
1const lib = require('lib'); 2lib.yourUsername.hostStatus({name: 'Dolores Abernathy'}) 3 .then(result => /* handle result */) 4 .catch(err => /* handle error */);
To explore the Autocode standard library, visit https://autocode.com/lib/. To build a web service or standard library API, sign up on https://autocode.com/.
Installation
To install locally in a project, use;
1$ npm install lib --save
Usage
1const lib = require('lib'); 2 3// [1]: Call "utils.greet" function, the latest version, from Autocode 4let message = await lib.utils.greet({name: 'Lionel Hutz'}); 5 6// [2]: Call "utils.greet" function with "dev" environment 7let message = await lib.utils.greet['@dev']({name: 'Lionel Hutz'}); 8 9// [3]: Call "utils.greet" function with "release" environment 10// This is equivalent to (1) 11let message = await lib.utils.greet['@release']({name: 'Lionel Hutz'}); 12 13// [4]: Call "utils.greet" function with specific version 14// if latest version, this is equivalent to (1) 15let message = await lib.utils.greet['@0.0.1']({name: 'Lionel Hutz'}); 16 17// [5]: Call another endpoint within the "utils.greet" service 18let message = await lib.utils.greet['@dev'].otherEndpoint(); 19 20// You can compose calls dynamically as well by using a string key 21await lib['utils.greet']({name: 'Lionel Hutz'}); 22await lib['utils.greet[@dev]']({name: 'Lionel Hutz'}); 23await lib['utils.greet[@release]']({name: 'Lionel Hutz'}); 24await lib['utils.greet[@0.0.1]']({name: 'Lionel Hutz'}); 25await lib['utils.greet.otherEndpoint']({name: 'Lionel Hutz'}); 26await lib['utils.greet[@dev].otherEndpoint']({name: 'Lionel Hutz'}); 27await lib['utils.greet[@release].otherEndpoint']({name: 'Lionel Hutz'}); 28await lib['utils.greet[@0.0.1].otherEndpoint']({name: 'Lionel Hutz'});
Additional Information
To learn more about Autocode, visit autocode.com or read the Autocode CLI documentation on GitHub.
You can follow the development team on Twitter, @AutocodeHQ
Autocode is © 2016 - 2021 Polybit Inc.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
Found 4/18 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 16 are checked with a SAST tool
Score
3.3
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More