Gathering detailed insights and metrics for awos-js
Gathering detailed insights and metrics for awos-js
Gathering detailed insights and metrics for awos-js
Gathering detailed insights and metrics for awos-js
npm install awos-js
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
16 Stars
99 Commits
4 Forks
5 Watchers
3 Branches
18 Contributors
Updated on Apr 09, 2025
Latest Version
4.1.0-beta.1
Package Id
awos-js@4.1.0-beta.1
Unpacked Size
49.68 kB
Size
7.92 kB
File Count
12
NPM Version
10.9.2
Node Version
23.4.0
Published on
Jul 04, 2025
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
awos for golang: https://github.com/shimohq/awos
get(key: string, metaKeys?: string[]): Promise<IGetObjectResponse | null>
will return null when object not existhead(key: string): Promise<Map<string, string> | null>
will null when object not existnpm i awos-js --save
1// for typescript 2import AWOS from 'awos-js' 3 4// for js 5const AWOS = require('awos-js')
1import { build } from 'awos-js' 2 3// for v3.*.* 4const client = build({ 5 storageType: 'oss', 6 accessKeyID: "xxx", 7 accessKeySecret: "xxx", 8 bucket: "my_bucket", 9 endpoint: 'endpoint', 10}) 11 12// for v2.*.* 13const client = new AWOS.Client({ 14 type: 'oss', 15 ossOptions: { 16 accessKeyId: 'accessKeyId', 17 accessKeySecret: 'accessKeySecret', 18 bucket: 'bucket', 19 endpoint: 'endpoint', 20 } 21})
1import { build } from 'awos-js' 2 3// for v3.*.* 4const client = build({ 5 storageType: 'aws', 6 accessKeyID: "xxx", 7 accessKeySecret: "xxx", 8 // when use aws s3, endpoint is unnecessary and region must be set 9 endpoint: "https://xxxx.myminio.com", 10 bucket: "my_bucket", 11 // when use minio, S3ForcePathStyle must be set true 12 s3ForcePathStyle: true, 13}) 14 15// For v2.*.* 16const client = new AWOS.Client({ 17 storageType: 'aws', 18 awsOptions: { 19 accessKeyId: 'accessKeyId', 20 secretAccessKey: 'secretAccessKey', 21 bucket: 'bucket', 22 // when use minio, S3ForcePathStyle must be set true 23 // when use aws, endpoint is unnecessary and region must be set 24 region: "region", 25 endpoint: 'endpoint', 26 s3ForcePathStyle: true, 27 } 28})
the available operation:
1get(key: string, metaKeys?: string[]): Promise<IGetObjectResponse | null>; 2getAsBuffer(key: string, metaKeys: string[]): Promise<IGetBufferedObjectResponse | null>; 3put(key: string, data: string | Buffer, options?: IPutObjectOptions): Promise<void>; 4del(key: string): Promise<void>; 5delMulti(keys: string[]): Promise<string[]>; // return keys not deleted 6head(key: string, options?: IHeadOptions): Promise<Map<string, string> | null>; 7listObject(key: string, options?: IListObjectOptions): Promise<string[]>; 8listDetails(key: string, options?: IListObjectOptions): Promise<IListObjectOutput>; 9signatureUrl(key: string, options?: ISignatureUrlOptions): Promise<string | null>; 10copy(key: string, source: string, options?: ICopyObjectOptions): Promise<void>;
v3.0.0 / 2024-01-18
v2.0.0 / 2020-06-18
meta
,contentType
,headers
of AWOS.put
into options
headers
option support for put
methodv1.0.4 / 2019-12-26
v1.0.3 / 2019-03-28
v1.0.2 / 2019-03-26
v1.0.1 / 2019-03-19
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
Found 3/7 approved changesets -- score normalized to 4
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
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
21 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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